Browse Source

Merge "Move "Domain" field under "User Name" and "Password"" into stable/wallaby

changes/61/786361/1
Zuul 1 week ago
committed by Gerrit Code Review
parent
commit
cf8c3ab26d
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      openstack_auth/forms.py

+ 2
- 4
openstack_auth/forms.py View File

@ -89,10 +89,8 @@ class Login(django_auth_forms.AuthenticationForm):
else:
self.fields['domain'] = forms.CharField(
initial=last_domain,
label=_("Domain"),
widget=forms.TextInput(attrs={"autofocus": "autofocus"}))
self.fields['username'].widget = forms.widgets.TextInput()
fields_ordering = ['domain', 'username', 'password', 'region']
label=_("Domain"))
fields_ordering = ['username', 'password', 'domain', 'region']
self.fields['region'].choices = get_region_choices()
if len(self.fields['region'].choices) == 1:
self.fields['region'].initial = self.fields['region'].choices[0][0]


Loading…
Cancel
Save