1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00

Add m.login.email.identity support to UI auth

Extends the interactive-auth to support m.login.email.identity
This also includes the ability to resume a UI auth session given
the approirpiate information (ie. to resume the auth flow having
click a link in a verification email).
This commit is contained in:
David Baker
2017-02-24 11:18:21 +00:00
parent d42ce3935b
commit af634d3a7d
2 changed files with 118 additions and 12 deletions

View File

@@ -1,5 +1,6 @@
/*
Copyright 2015, 2016 OpenMarket Ltd
Copyright 2017 Vector Creations Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -135,7 +136,7 @@ MatrixBaseApis.prototype.register = function(
sessionId, auth, bindEmail, guestAccessToken,
callback,
) {
if (auth === undefined) {
if (auth === undefined || auth === null) {
auth = {};
}
if (sessionId) {