mirror of
https://github.com/element-hq/element-web
synced 2024-11-25 02:35:48 +03:00
Supply bind_email=true at registration time - required for 3pid invites to work.
This commit is contained in:
parent
5eff6140e0
commit
1eeb732625
1 changed files with 10 additions and 1 deletions
|
@ -116,8 +116,17 @@ class Register extends Signup {
|
|||
|
||||
_tryRegister(authDict) {
|
||||
var self = this;
|
||||
|
||||
var bindEmail;
|
||||
|
||||
if (this.username && this.password) {
|
||||
// only need to bind_email when sending u/p - sending it at other
|
||||
// times clobbers the u/p resulting in M_MISSING_PARAM (password)
|
||||
bindEmail = true;
|
||||
}
|
||||
|
||||
return MatrixClientPeg.get().register(
|
||||
this.username, this.password, this.params.sessionId, authDict
|
||||
this.username, this.password, this.params.sessionId, authDict, bindEmail
|
||||
).then(function(result) {
|
||||
self.credentials = result;
|
||||
self.setStep("COMPLETE");
|
||||
|
|
Loading…
Reference in a new issue