[menubar menu=(_topmenu$) class=font_125]

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

[form program=*account][section half]

User Name: [input UserName$ required validate event=show_user len=24 size=20 query=("*webster/scrnlib.en;Users"+tbl(%webster'UseNomadsSecurity=1,"","_nom")) format="pattern:^\[a-zA-Z\]\[a-zA-Z0-9-_\.\]{2,23}$" tip="Username must be between 3 and 24 characters; start with a letter and contain letters, numbers, dot, dash, or underscore."] [if bad_name]User name in use/invalid[/if][show "User #:"+stp(UserRID$,0,"0") class=float_right]

[/section][section half][/section][section half][subttl]User information[/subttl]

First Name: [input FirstName$ (namefocus$) 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=40] [if dup_email]Email already in use[/if][if bad_email]Valid email address required[/if]
Cell Phone Number: [input UserSMS$ len=12 autocomplete=__off] (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 UserRID$ type=hidden][input AuthenticatorVerified$ type=hidden][input Created$ type=hidden][input LastSignon$ type=hidden][input LastSignonIP$ type=hidden][input EmailVerified$ type=hidden][input SMSVerified$ type=hidden] [if ShowQR$="1"]
[symbol times event=cancel_qr]

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]
Default template: [input Template$ size=40] (optional)
User Start page: [input StartPage$ size=40] (optional)
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]Disabled: [checkbox disabled][/checkbox]

[/section][section half][subttl]User status[/subttl]

User created: [show Created$]
Last signon: [show LastSignon$] 
Last known IP address: [show LastSignonIP$]
Email verified: [show EmailVerified$]
SMS verified: [show SMSVerified$]
Authenticator verified: [show AuthenticatorVerified$]

[/section]


[button validate event=user_update][symbol save]  Save[/button] [button event=user_delete][symbol trash]  Delete[/button] [button event=show_user][symbol recycle] Reset[/button]

[/form]