mirror of
https://github.com/matrix-construct/construct
synced 2024-05-16 01:43:49 +02:00
share/webapp: Defaulty behavior for empty flows.
This commit is contained in:
parent
0d4661e1ef
commit
af821a9e3b
|
@ -21,7 +21,7 @@ mc.auth = async function(flows = {}, opts = {})
|
||||||
{
|
{
|
||||||
let request = mc.m.login.get();
|
let request = mc.m.login.get();
|
||||||
let login = await request.response;
|
let login = await request.response;
|
||||||
Object.update(flows, login.flows);
|
Object.update(flows, maybe(() => login.flows));
|
||||||
for(let i in flows)
|
for(let i in flows)
|
||||||
{
|
{
|
||||||
let flow = flows[i];
|
let flow = flows[i];
|
||||||
|
|
Loading…
Reference in a new issue