Merge remote-tracking branch 'origin/szzh' into szzh

This commit is contained in:
lizanle 2015-12-01 10:36:16 +08:00
commit 1103a114a0
2 changed files with 3 additions and 1 deletions

View File

@ -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?

View File

@ -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