mirror of
https://github.com/capricornxl/ad-password-self-service.git
synced 2025-08-11 20:15:40 +08:00
修改format2username方法,返回元组作为结果判断。
悠resetpwd.views 将所有format2username兼容处理,防止当用户名为空时,能正确抛出异常给前端页面。 修复resetpwd.views callback_check中一个BUG(如果用户不存在或未激活,会存在通过format2username拿不到用户名的情况,在这里就直接抛出user_info整个json)
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
|
||||
# ##########################################################################
|
||||
# 字符串前面的格式编码不要去掉了,主要是为了解决特殊字符被转义的问题。 #
|
||||
# ##########################################################################
|
||||
|
||||
# ########## AD配置,修改为自己的
|
||||
# AD主机,可以是IP或主机域名,例如可以是: abc.com或172.16.122.1
|
||||
AD_HOST = r'修改成自己的'
|
||||
|
Reference in New Issue
Block a user