Merge remote-tracking branch 'origin/szzh' into szzh
This commit is contained in:
commit
1103a114a0
|
@ -3,6 +3,8 @@
|
|||
class WordsController < ApplicationController
|
||||
include ApplicationHelper
|
||||
before_filter :find_user, :only => [:new, :create, :destroy, :more, :back]
|
||||
before_filter :require_login, :only => [:create_reply]
|
||||
|
||||
def create
|
||||
if params[:new_form][:user_message].size>0 && User.current.logged?
|
||||
unless params[:user_id].nil?
|
||||
|
|
|
@ -477,7 +477,7 @@ class User < Principal
|
|||
end
|
||||
if user
|
||||
# user is already in local database
|
||||
#return nil unless user.active?
|
||||
return nil if user.locked?
|
||||
return nil unless user.check_password?(password)
|
||||
else
|
||||
# user is not yet registered, try to authenticate with available sources
|
||||
|
|
Loading…
Reference in New Issue