@ -84,7 +84,7 @@
}
};
let intro = false;
let intro = true;
let registration_error;
let registration_success;
let pin = [];
@ -61,7 +61,7 @@ impl Server {
// if needed, proceed with payment and verify it here. once validated, add the user
let duration = parse("5m").unwrap();
let duration = parse("1d").unwrap();
let expiry = timestamp_after(duration);
let symkey = SymKey::random();
let invite_code = InvitationCode::Unique(symkey.clone());
@ -154,10 +154,13 @@ pub async fn retrieve_local_bootstrap(
if resp.is_ok() {
let mut inv: Invitation = resp.unwrap().into();
inv.set_url(BROKER.read().await.get_registration_url());
return Some(inv);
Some(inv)
} else {
None
let res = if invite1.is_none() {