Upstream sync

This commit is contained in:
Senad Uka
2018-05-26 16:36:01 +02:00
parent 11fe5f1c61
commit 372b3883a0
6 changed files with 364 additions and 163 deletions

View File

@@ -54,8 +54,7 @@ class SignUp extends React.Component {
this.clickEvent = this.clickEvent.bind(this);
}
componentDidMount = () => {
}
componentDidMount = () => { }
buttonValidated = () => {
let validated = true;
@@ -128,7 +127,7 @@ class SignUp extends React.Component {
"pass": this.state.pass,
};
Instance.getRawConn().post('/v1/selfregister/', user).then(function (res) {
Instance.setToken(null).post('/v1/selfregister/', user).then(function (res) {
localStorage.removeItem('loggedUser');
location.href = '/#/login';
}).catch(function (err) {