mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Move admin views for users, groups, and object permissions from the admin site to the NetBox frontend --------- Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
26 lines
517 B
Python
26 lines
517 B
Python
from django.contrib.auth.forms import (
|
|
AuthenticationForm,
|
|
PasswordChangeForm as DjangoPasswordChangeForm,
|
|
)
|
|
|
|
from utilities.forms import BootstrapMixin
|
|
|
|
__all__ = (
|
|
'LoginForm',
|
|
'PasswordChangeForm',
|
|
)
|
|
|
|
|
|
class LoginForm(BootstrapMixin, AuthenticationForm):
|
|
"""
|
|
Used to authenticate a user by username and password.
|
|
"""
|
|
pass
|
|
|
|
|
|
class PasswordChangeForm(BootstrapMixin, DjangoPasswordChangeForm):
|
|
"""
|
|
This form enables a user to change his or her own password.
|
|
"""
|
|
pass
|