... If confirm_login_allowed() is overridden, more sensitive details could be leaked. This issue is fixed with the caveat that AuthenticationForm can no longer raise the "This account is inactive." error if the authentication backend rejects inactive users (the defaul ... ... If confirm_login_allowed() is overridden, more sensitive details could be leaked. This issue is fixed with the caveat that AuthenticationForm can no longer raise the "This account is inactive." error if the authentication backend rejects inactive users (the defaul ... ... オーバーライドします。 authentication_form 認証に使用する呼び出し可能オブジェクト (通常はフォームクラス) です。デフォルトは AuthenticationForm です。 extra_context テンプレートに渡されるデフォルトコンテキストデータに追加されるコンテキストデータの辞書。 redirect_aut ... レートのhtmlを提供するのはあなたの責任です。このテンプレートには以下の4つのテンプレートコンテキスト変数が渡されます: form : AuthenticationForm を表す Form オブジェクトです。 next : ログイン成功後にリダイレクトするURL。これはクエリ文字列を含むこともできます。 site : ... validation is done, and password-based authentication is disabled for the user by calling set_unusable_password() . class AuthenticationForm [ソース] ユーザーログインのためのフォームです。 第 1 引数として request を取り、サブクラスで使えるようにフォームのインスタ ... ... ... ersRemoteUserBackend を使うことができます。この場合、非アクティブのユーザを拒否してしまうので、 LoginView によって使われる AuthenticationForm もカスタマイズした方が良いでしょう。 has_perm() のようなパーミッションチェックのメソッドや Django admin 内の認証はすべて非 ... を返します。 user_can_authenticate () [ソース] Returns whether the user is allowed to authenticate. To match the behavior of AuthenticationForm.confirm_login_allowed() , this method returns False for users with is_active=False . Custom user models that don't have an ... True を返すため、非アクティブなユーザーを拒否しません。 このバックエンドを使用する際は、おそらく、 LoginView で使用される AuthenticationForm クラスをカスタマイズしたいと思うでしょう。非アクティブなユーザーを拒否する confirm_login_allowed() メソッドをオーバーライド ... ... he permission_required() decorator can take a list of permissions as well as a single permission. You can override the new AuthenticationForm.confirm_login_allowed() method to more easily customize the login policy. django.contrib.auth.views.password_reset() takes ... he save_warnings_state() / restore_warnings_state() django.test.*TestCase are removed. The check_for_test_cookie method in AuthenticationForm is removed. The version of django.contrib.auth.views.password_reset_confirm() that supports base36 encoded user IDs ( djan ... ... ort a broader set of characters for usernames. This release refactors the admin's login mechanism to use a subclass of the AuthenticationForm instead of a manual form validation. The previously undocumented method 'django.contrib.admin.sites.AdminSite.display_logi ... ... lBackend のメソッド) (RemoteUserBackend のメソッド) AUTHENTICATION_BACKENDS setting authentication_form (LoginView の属性) AuthenticationForm (django.contrib.auth.forms のクラス) AuthenticationMiddleware (django.contrib.auth.middleware のクラス) auto_created (Fiel ... のクラス) configure_user() (RemoteUserBackend のメソッド) configured (django.conf.settings の属性) confirm_login_allowed() (AuthenticationForm のメソッド) CONN_HEALTH_CHECKS setting CONN_MAX_AGE setting connect() (Signal のメソッド) connection (SchemaEditor の属性) ... ... atch_warnings context manager available starting with Python 2.6 instead. The undocumented check_for_test_cookie method in AuthenticationForm will be removed following an accelerated deprecation. Users subclassing this form should remove calls to this method, and ... ... 詳細な説明 影響を受けるバージョン Django 2.0 (パッチ) Django 1.11 (パッチ) Django 1.8 (パッチ) 2018年2月1日 - CVE 2018-6188 AuthenticationForm における情報漏えい問題。 詳細な説明 影響を受けるバージョン Django 2.0 (パッチ) Django 1.11 (パッチ) 2017年9月5日 - CVE 201 ... 2026年10月08日