ソースを参照

fix: Make authentication check mandatory even in case of 2FA

version-14
leela 4年前
コミット
2227b910d3
1個のファイルの変更1行の追加3行の削除
  1. +1
    -3
      frappe/auth.py

+ 1
- 3
frappe/auth.py ファイルの表示

@@ -215,9 +215,7 @@ class LoginManager:
if not (user and pwd):
self.fail(_('Incomplete login details'), user=user)

# Ignore password check if tmp_id is set, 2FA takes care of authentication.
validate_password = not bool(frappe.form_dict.get('tmp_id'))
user = User.find_by_credentials(user, pwd, validate_password=validate_password)
user = User.find_by_credentials(user, pwd)

if not user:
self.fail('Invalid login credentials')


読み込み中…
キャンセル
保存