allow user to reset his private token
This commit is contained in:
parent
32ca0b8cae
commit
ed5e19a518
5 changed files with 33 additions and 1 deletions
|
@ -25,4 +25,9 @@ class ProfileController < ApplicationController
|
|||
render :action => "password"
|
||||
end
|
||||
end
|
||||
|
||||
def reset_private_token
|
||||
current_user.reset_authentication_token!
|
||||
redirect_to profile_password_path
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue