Skip to content
This repository was archived by the owner on Apr 2, 2018. It is now read-only.
This repository was archived by the owner on Apr 2, 2018. It is now read-only.

auth.requestPasswordReset(email) not working  #32

Closed
@mo-mueller

Description

@mo-mueller

I'm trying to implement the Ionic Cloud Auth Service and now I want to do the password reset like it is described here. So I have a text field where the user can enter his email and a button.

Here is my pw-reset.html:

<ion-header>
  <ion-navbar>
    <ion-title>New Password</ion-title>
  </ion-navbar>
</ion-header>

<ion-content padding>
    <ion-item>
        <ion-label color="primary" stacked>E-Mail</ion-label>
        <ion-input [(ngModel)]="email"></ion-input>
    </ion-item>
    <br />
    <button ion-button (click)="sendPasswordRequest();">New Password</button>
</ion-content>

And here is my pw-reset.ts:

import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';
import { Auth, User, UserDetails, IDetailedError } from '@ionic/cloud-angular';
import { ConfirmPasswordResetPage } from '../confirm-password-reset/confirm-password-reset';

@Component({
  selector: 'page-pw-reset',
  templateUrl: 'pw-reset.html'
})
export class PwResetPage {
    email: any;

    constructor(public navCtrl: NavController, public auth: Auth) {}

    sendPasswordRequest() {
        this.auth.requestPasswordReset(this.email);
        this.navCtrl.push(ConfirmPasswordResetPage);
    }
}

And here are the errors which come when I click on the button:

error

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions