File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,9 @@ class Signup {
51
51
52
52
/**
53
53
* Registration logic class
54
+ * This exists for the lifetime of a user's attempt to register an account,
55
+ * so if their registration attempt fails for whatever reason and they
56
+ * try again, call register() on the same instance again.
54
57
*/
55
58
class Register extends Signup {
56
59
constructor ( hsUrl , isUrl , opts ) {
@@ -117,12 +120,16 @@ class Register extends Signup {
117
120
} ) ;
118
121
}
119
122
123
+ /**
124
+ * Starts the registration process from the first stage
125
+ */
120
126
register ( formVals ) {
121
127
var { username, password, email} = formVals ;
122
128
this . email = email ;
123
129
this . username = username ;
124
130
this . password = password ;
125
131
const client = this . _createTemporaryClient ( ) ;
132
+ this . activeStage = null ;
126
133
return this . _tryRegister ( client ) ;
127
134
}
128
135
You can’t perform that action at this time.
0 commit comments