mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-06 14:48:24 -04:00
Merge branch 'master' into forgot-password
This commit is contained in:
@@ -104,7 +104,7 @@ class RegisterUserFromInviteForm(Form):
|
||||
mobile_number = mobile_number()
|
||||
password = password()
|
||||
service = HiddenField('service')
|
||||
email_address = email_address()
|
||||
email_address = HiddenField('email_address')
|
||||
|
||||
|
||||
class InviteUserForm(Form):
|
||||
|
||||
@@ -88,7 +88,7 @@ class User(UserMixin):
|
||||
if service_id in self._permissions:
|
||||
if or_:
|
||||
return any([x in self._permissions[service_id] for x in permissions])
|
||||
return set(self._permissions[service_id]) > set(permissions)
|
||||
return set(self._permissions[service_id]) >= set(permissions)
|
||||
return False
|
||||
|
||||
@property
|
||||
|
||||
@@ -12,12 +12,12 @@ Create an account – GOV.UK Notify
|
||||
<div class="column-two-thirds">
|
||||
<h1 class="heading-large">Create an account</h1>
|
||||
<form method="post" autocomplete="nope">
|
||||
{{ textbox(form.email_address, width='3-4', disabled=True ) }}
|
||||
{{ textbox(form.name, width='3-4') }}
|
||||
{{ textbox(form.mobile_number, width='3-4') }}
|
||||
{{ textbox(form.password, hint="Your password must have at least 10 characters", width='3-4') }}
|
||||
{{ page_footer("Continue") }}
|
||||
{{form.service}}
|
||||
{{form.email_address}}
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user