[ttl]Account Maintenance[/ttl][show info_msg$ class="infobox show_till_change"]

[form program=*account ]

User Name: [input UserName$ size=20 locked]
First Name: [input FirstName$ focus size=20]
Last Name: [input LastName$ size=20]
Password: [input UserPswd1$ type=password format=("pattern:"+%webster'PswdRegExp$) len=50 size=30 tip=(%webster'PswdTip$)] [if bad_pswd]Invalid password[/if]
Re-enter Password: [input UserPswd2$ type=password format=("pattern:"+%webster'PswdRegExp$) len=50 size=30 tip=(%webster'PswdTip$)] [if err_different]Not the same as above[/if]
Email Address: [input UserEmail$ type=email size=50] [if dup_email]Email already in use[/if][if bad_email]Valid email address required[/if]
Cell Phone Number: [input UserSMS$ len=12] (used for two-step verification)
Company: [input Company$ size=30] (optional)
Authenticator: [if AuthenticatorVerified$<>""]✔ Verified [button event=remove_authenticator text="Disable"][else][button event=setup_qr text="Setup"][/if] [input AuthenticatorSecret$ type=hidden][input AuthenticatorVerified$ type=hidden] [if ShowQR$="1"]
[button class=symbol_only event=cancel_qr][symbol times][/button]

Steps for Setting Up the Authenticator App

1. Download and install your desired Authenticator App.

2. In the App, add a new Account or Token.

3. Scan the QR code shown here.

4. Enter the time-based One-Time Passcode from the App.

5. Select Verify to save and accept.

[if QRPATH$<>""][IMAGE file=(QRPATH$) size=16/16 tip=" "][/if]
[input AuthCode$ size=12 len=6 align="center"][input SECRET_ARG$ type=hidden]
[button text="Verify" event=verify_authenticator_setup ] [hide ShowQR$]
[/if]
Security Group: [if isAdmin and not(%webster'UserName$ = UserName$)][list GroupName$ query=*webster/scrnlib.en;groups drop][/list][else][input GroupName$ locked][/if] 
[if %webster'hasEmail or %webster'hasSMS or AuthenticatorVerified$<>""]Two-step verification: [list TwoStepPreference$][data valsep="="]
Don't use=N
Use on new device=Y
Always use=A
[/data][/list]
[/if]  
  [button validate event=update][symbol save]  Save[/button] [button event=show_user][symbol recycle] Reset[/button] [button  link=page:*default][symbol mail-reply]  Cancel[/button]

[/form]