You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-12-07 03:42:20 +03:00
Add some docs for the lifetime of Signup
This commit is contained in:
@@ -51,6 +51,9 @@ class Signup {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Registration logic class
|
* Registration logic class
|
||||||
|
* This exists for the lifetime of a user's attempt to register an account,
|
||||||
|
* so if their registration attempt fails for whatever reason and they
|
||||||
|
* try again, call register() on the same instance again.
|
||||||
*/
|
*/
|
||||||
class Register extends Signup {
|
class Register extends Signup {
|
||||||
constructor(hsUrl, isUrl, opts) {
|
constructor(hsUrl, isUrl, opts) {
|
||||||
@@ -117,6 +120,9 @@ class Register extends Signup {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Starts the registration process from the first stage
|
||||||
|
*/
|
||||||
register(formVals) {
|
register(formVals) {
|
||||||
var {username, password, email} = formVals;
|
var {username, password, email} = formVals;
|
||||||
this.email = email;
|
this.email = email;
|
||||||
|
|||||||
Reference in New Issue
Block a user