mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
fix login maybe? AGAIN?
This commit is contained in:
parent
cfad98b0c6
commit
233d2612d1
6
sea.js
6
sea.js
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user