update : otp interface
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { observable, action, computed} from 'mobx';
|
||||
import * as fetch from 'isomorphic-fetch';
|
||||
import { resolve } from 'url';
|
||||
|
||||
export class Authentication {
|
||||
|
||||
@@ -8,7 +9,7 @@ export class Authentication {
|
||||
@observable isLoggingIn = false;
|
||||
@observable isInviting = false;
|
||||
@observable removingUser = false;
|
||||
|
||||
@observable isNeedEmailVerification = false;
|
||||
@observable userWallet = {};
|
||||
@observable userProfile = {
|
||||
email : '',
|
||||
@@ -50,8 +51,10 @@ export class Authentication {
|
||||
return this.http.post("authentication/login", data)
|
||||
.then(res => {
|
||||
this.isLoggingIn = false;
|
||||
this.isNeedEmailVerification = res.need_email_verification;
|
||||
this.context.setToken(res.token);
|
||||
this.context.loadDataAfterLogin();
|
||||
return res;
|
||||
})
|
||||
.catch(err => {
|
||||
this.isLoggingIn = false;
|
||||
|
||||
Reference in New Issue
Block a user