fix login maybe? AGAIN?

This commit is contained in:
Mark Nadal 2022-08-03 14:13:17 -07:00
parent cfad98b0c6
commit 233d2612d1

6
sea.js
View File

@ -976,7 +976,7 @@
}
cat.ing = true;
var act = {}, u;
var act = {}, u, tries = 9;
act.a = function(data){
if(!data){ return act.b() }
if(!data.pub){
@ -990,6 +990,10 @@
var get = (act.list = (act.list||[]).concat(list||[])).shift();
if(u === get){
if(act.name){ return act.err('Your user account is not published for dApps to access, please consider syncing it online, or allowing local access by adding your device as a peer.') }
if(alias && tries--){
root.get('~@'+alias).once(act.a);
return;
}
return act.err('Wrong user or password.')
}
root.get(get).once(act.a);