Merge pull request #6840 from urbit/m/simpler-login

eyre: simplify the login page ux a little bit
This commit is contained in:
Pyry Kovanen 2023-11-13 20:59:30 +02:00 committed by GitHub
commit 307bd65914
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -459,8 +459,6 @@
name.focus();
}
function doEauth() {
console.log('mb get value from event', event);
console.log('compare', name.value, our);
if (name.value == our) {
event.preventDefault();
goLocal();
@ -471,10 +469,6 @@
;body
=class "{?:(=(`& eauth) "eauth" "local")}"
=onload "setup({?:(=(`& eauth) "true" "false")})"
;nav
;div.local(onclick "goLocal()"):"Local"
;div.eauth(onclick "goEauth()"):"EAuth"
==
;div#local
;p:"Urbit ID"
;input(value "{(scow %p our)}", disabled "true", class "mono");
@ -528,16 +522,11 @@
==
==
;* ?: ?=(%ours -.identity) ~
=+ id=(trim 29 (scow %p who.identity))
=+ as="proceed as{?:(?=(%fake -.identity) " guest" "")}"
;+ ;span.guest.mono
; Or
; Or try to
;a/"{(trip (fall redirect-url '/'))}":"{as}"
; :
;br;
; {p.id}
;br;
; {q.id}
; .
==
==
;script:'''