Password & token split up, icon to button for top panel

This commit is contained in:
Dmitriy Zaporozhets 2012-05-19 12:00:46 +03:00
parent eb25bfe2b2
commit 1e4d15b406
13 changed files with 108 additions and 92 deletions

View file

@ -14,6 +14,10 @@ class ProfileController < ApplicationController
redirect_to :back
end
def token
@user = current_user
end
def password
@user = current_user
end
@ -32,6 +36,6 @@ class ProfileController < ApplicationController
def reset_private_token
current_user.reset_authentication_token!
redirect_to profile_password_path
redirect_to profile_token_path
end
end