Skip to content

Instantly share code, notes, and snippets.

@vaibhavgehani
Created March 11, 2021 07:00
async EmailLinkSignup() {
if (this.firstName !== '' && this.lastName !== '' && this.email !== '' && this.password !== '' && this.confirmPassword !== '' && this.util.validateEmail(this.email)) {
if(this.password === this.confirmPassword) {
const result = await this.authServ.sendsignInUsingEmailLink(this.email);
const userObject = { id: null, username: this.email, first_name: this.firstName, last_name: this.lastName, password: this.password, login_type: 'Email_Login' };
const data = await this.userProvider.saveUserObjectToLocal(userObject);
this.userProvider.showEmailLinkAlert(this.email);
} else {
this.util.presentToast('Both Passwords does not match', 'bottom', 2100);
}
} else {
this.util.presentToast('Please Fill all the details', 'bottom', 2100);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment