% "web.bry" // BRY Web 04 — account command policy and account page composition. // Access keys are generated and checked by the host cryptographic adapter. ::2.+8.++5.1.++1.++.8.3.8.5.3.+1(@1#3,@2#3,@3#2)#2 [ ?(@1 == "create")[< !@3 && @2 == ""] ?(@1 == "login")[< !@3 && :len(@2) == 64] ?(@1 == "logout")[< @3 && @2 == ""] ?(@1 == "rotate")[< @3 && @2 == "ROTATE"] ?(@1 == "delete")[< @3 && @2 == "DELETE"] < false ] ::2.+8.++5.1.3.3.+5.++1.+4.++(@1#2,@2#3)#3 [ @3 := "
04 / ACCOUNT ACCESS
" ?(@1)[ @3 := @3 + ::2.+8.++5.++.5.++4.++("h1","Your Desk account.") + ::2.+8.++5.++.5.++4.++("p","Manage access to your personal workspace.") ?(:len(@2) > 0)[@3 := @3 + ::2.+8.++5.++.5.++4.++("h2","Save your access key now.") + ::2.+8.++5.++.5.++4.++("p","This key is shown once. Anyone who has it can access your account. Keep it somewhere safe; there is no recovery service.") + "
" + ::2.+8.++5.5.+9.3(@2) + "
"] @3 := @3 + "
Open workspace
Rotate access key
Delete account
" ]:[ @3 := @3 + ::2.+8.++5.++.5.++4.++("h1","Your workspace, anywhere.") + ::2.+8.++5.++.5.++4.++("p","Create a development account with a generated access key, or sign in with an existing key. No email or password required.") + "
" ] < ::2.+8.++5.4.+5.3("Bry account",@3 + "
") ]