|
|
@ -32,7 +32,7 @@ class GitsController < ApplicationController
|
|
|
|
system_user = User.find_by_login(input_username) || User.find_by_mail(input_username) || User.find_by_phone(input_username)
|
|
|
|
system_user = User.find_by_login(input_username) || User.find_by_mail(input_username) || User.find_by_phone(input_username)
|
|
|
|
|
|
|
|
|
|
|
|
# 如果用户名密码错误
|
|
|
|
# 如果用户名密码错误
|
|
|
|
if !system_user.check_password?(input_password)
|
|
|
|
if system_user && !system_user.check_password?(input_password)
|
|
|
|
uid_logger_error("git start: password is wrong")
|
|
|
|
uid_logger_error("git start: password is wrong")
|
|
|
|
result = false
|
|
|
|
result = false
|
|
|
|
else
|
|
|
|
else
|
|
|
|