accounts: add phone-change view title (#82733) #157
|
@ -289,6 +289,7 @@ email_change = decorators.setting_enabled('A2_PROFILE_CAN_CHANGE_EMAIL')(
|
|||
|
||||
class PhoneChangeView(HomeURLMixin, IdentifierChangeMixin, cbv.TemplateNamesMixin, FormView):
|
||||
template_name = 'authentic2/change_phone.html'
|
||||
title = _('Phone Change')
|
||||
reauthn_message = _('You must re-authenticate to change your phone number.')
|
||||
action = 'phone-change'
|
||||
|
||||
|
|
|
@ -59,6 +59,7 @@ def test_change_phone(app, nomail_user, user_ou1, phone_activated_authn, setting
|
|||
password=nomail_user.username,
|
||||
)
|
||||
assert 'Your current phone number is +33122446688.' in resp.text
|
||||
assert 'Phone Change' in resp.pyquery('title')[0].text
|
||||
|
||||
resp.form.set('phone_1', '122446666')
|
||||
resp.form.set('password', nomail_user.username)
|
||||
|
|
Loading…
Reference in New Issue