update : login page and auth store

This commit is contained in:
enggar_ganteng
2019-01-29 15:17:42 +07:00
parent df87d00305
commit 23094db622
2 changed files with 33 additions and 1 deletions

View File

@@ -37,6 +37,7 @@ export class Authentication {
// airline_settings: []
// }
};
@observable otpData = {}
constructor(context) {
this.context = context;
@@ -117,6 +118,30 @@ export class Authentication {
})
}
@action
resendEmail(data) {
this.isRegistering = true;
return this.http.post("/resend_email_verification", data)
.then(res => {
return res;
})
.catch(err => {
throw err;
})
}
@action
validateOtp(data) {
this.isRegistering = true;
return this.http.post("/validate_otp", data)
.then(res => {
return res;
})
.catch(err => {
throw err;
})
}
createCookie(name,value,days) {
let expires
if (days) {