git service add log

dev_course
jingquan huang 6 years ago
parent 28c58434c7
commit 8fbad4aaf3

@ -16,8 +16,8 @@ class GitsController < ApplicationController
username_password = Base64.decode64(request.env["HTTP_AUTHORIZATION"].split(" ")[1])
input_username = username_password.split(":")[0].strip()
input_password = username_password.split(":")[1].strip()
uid_logger("git start auth: input_username is #{input_username}")
uid_logger("git start auth: password is #{input_password}")
uid_logger("git start auth: input_username is 55#{input_username}55")
uid_logger("git start auth: password is 66#{input_password}66")
# Git 超级权限用户
if input_username.strip == gituser.strip && input_password.strip == gitpassword.strip
@ -28,7 +28,7 @@ class GitsController < ApplicationController
# 如果用户名密码错误
if !system_user.check_password?(input_password)
uid_logger_error("git start: password is wrong")
uid_logger_error("git start: password is wrong#77#{input_password}77")
result = false
else
git_url = params["url"]

Loading…
Cancel
Save