mirror of
https://github.com/havenweb/haven.git
synced 2025-07-16 08:34:21 +02:00
fix reset password bug
This commit is contained in:
parent
b3979cb8fe
commit
a2e374afb2
@ -38,7 +38,7 @@ class UsersController < ApplicationController
|
||||
auth_user = Devise.friendly_token.first(10)
|
||||
auth_pass = Devise.friendly_token.first(10)
|
||||
image_pass = Devise.friendly_token.first(20)
|
||||
@user.update_attributes(password: @password, basic_auth_username: auth_user, basic_auth_password: auth_pass, image_password: image_pass)
|
||||
@user.update(password: @password, basic_auth_username: auth_user, basic_auth_password: auth_pass, image_password: image_pass)
|
||||
@verb = "updated"
|
||||
@user.login_links.each {|ll| ll.destroy} ## delete old links
|
||||
login_link = LoginLink.generate(@user)
|
||||
|
Loading…
x
Reference in New Issue
Block a user