Users with SHA-1 hashes are redirected to the password change page

This commit is contained in:
Jan Stępień 2011-09-05 22:06:37 +02:00
parent a11937788e
commit 5d3829cfbf
6 changed files with 54 additions and 0 deletions

View file

@ -1,6 +1,8 @@
class UsersController < ApplicationController
before_filter :admin_login_required, :only => [ :index, :show, :destroy ]
skip_before_filter :login_required, :only => [ :new, :create ]
skip_before_filter :check_for_deprecated_password_hash,
:only => [ :change_password ]
prepend_before_filter :login_optional, :only => [ :new, :create ]
# GET /users GET /users.xml