mirror of
https://github.com/vector-im/element-web.git
synced 2025-09-03 12:51:04 +02:00
More commentary
This commit is contained in:
parent
6ffb7efc9b
commit
c45b076df9
@ -135,6 +135,10 @@ class Register extends Signup {
|
|||||||
// generate one for this session. It will only be used if
|
// generate one for this session. It will only be used if
|
||||||
// we do email verification, but far simpler to just make
|
// we do email verification, but far simpler to just make
|
||||||
// sure we have one.
|
// sure we have one.
|
||||||
|
// We re-use this same secret over multiple calls to register
|
||||||
|
// so that the identity server can honour the sendAttempt
|
||||||
|
// parameter and not re-send email unless we actually want
|
||||||
|
// another mail to be sent.
|
||||||
if (!this.params.clientSecret) {
|
if (!this.params.clientSecret) {
|
||||||
this.params.clientSecret = client.generateClientSecret();
|
this.params.clientSecret = client.generateClientSecret();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user