update : login page and auth store
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user