New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reset password #86
Reset password #86
Conversation
post '/' do | ||
person = Huertask::Person.first(:email => params[:email]) | ||
return error!('Unauthorized', 401) unless person | ||
new_password = (1..6).map{(rand(26)+65).chr}.join |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
llevar esto al modelo Person
def reset_password(user_mail, new_password) | ||
Pony.mail( | ||
:to => user_mail, | ||
:from => "miguelmundiaragones@gmail.com", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cuidado con configuraciones
sendResetLink() { | ||
this.personService.resetPassword(this.email).subscribe( | ||
data => this.navCtrl.pop(), | ||
err => console.log(err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
toast????
No description provided.