Skip to content

Commit a9c16dd

Browse files
author
Huan Li
committed
Update Email Change Flow
1 parent 480caef commit a9c16dd

File tree

6 files changed

+553
-275
lines changed

6 files changed

+553
-275
lines changed

docs/actions.profile.md

+66-41
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,15 @@ Actions for interactions with profile details API.
5151
* [.saveEmailPreferencesDone(profile, tokenV3, preferences)](#module_actions.profile.saveEmailPreferencesDone) ⇒ <code>Action</code>
5252
* [.updatePasswordInit()](#module_actions.profile.updatePasswordInit) ⇒ <code>Action</code>
5353
* [.updatePasswordDone(profile, tokenV3, newPassword, oldPassword)](#module_actions.profile.updatePasswordDone) ⇒ <code>Action</code>
54+
* [.verifyMemberNewEmailInit()](#module_actions.profile.verifyMemberNewEmailInit) ⇒ <code>Action</code>
55+
* [.verifyMemberNewEmailDone(handle, tokenV3, emailVerifyToken)](#module_actions.profile.verifyMemberNewEmailDone) ⇒ <code>Action</code>
5456

5557
<a name="module_actions.profile.loadProfile"></a>
5658

5759
### actions.profile.loadProfile(handle) ⇒ <code>Action</code>
5860
Creates and action that loads user profile.
5961

60-
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
62+
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
6163
**Todo**
6264

6365
- [ ] This action does not follow the pattern with init/done pairs of
@@ -73,7 +75,7 @@ Creates and action that loads user profile.
7375
### actions.profile.clearProfile() ⇒ <code>Action</code>
7476
Creates and action that clear user profile.
7577

76-
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
78+
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
7779
**Todo**
7880

7981
- [ ] This action does not follow the pattern with init/done pairs of
@@ -84,7 +86,7 @@ Creates and action that clear user profile.
8486
### actions.profile.getAchievementsInit() ⇒ <code>Action</code>
8587
Creates an action that signals beginning of user achievements loading.
8688

87-
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
89+
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
8890
**Todo**
8991

9092
- [ ] This duplicates similar action in [actions.members.md](actions.members.md)!
@@ -94,7 +96,7 @@ Creates an action that signals beginning of user achievements loading.
9496
### actions.profile.getAchievementsDone(handle) ⇒ <code>Action</code>
9597
Creates an action that loads user achievements.
9698

97-
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
99+
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
98100
**Todo**
99101

100102
- [ ] This duplicates similar action in [actions.members.md](actions.members.md)!
@@ -107,15 +109,15 @@ Creates an action that loads user achievements.
107109
<a name="module_actions.profile.getExternalAccountsInit"></a>
108110

109111
### actions.profile.getExternalAccountsInit() ⇒ <code>Action</code>
110-
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
112+
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
111113
**Todo**
112114

113115
- [ ] To be documented.
114116

115117
<a name="module_actions.profile.getExternalAccountsDone"></a>
116118

117119
### actions.profile.getExternalAccountsDone(handle) ⇒ <code>Action</code>
118-
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
120+
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
119121
**Todo**
120122

121123
- [ ] To be documented.
@@ -128,15 +130,15 @@ Creates an action that loads user achievements.
128130
<a name="module_actions.profile.getExternalLinksInit"></a>
129131

130132
### actions.profile.getExternalLinksInit() ⇒ <code>Action</code>
131-
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
133+
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
132134
**Todo**
133135

134136
- [ ] Figure out what does this action do.
135137

136138
<a name="module_actions.profile.getExternalLinksDone"></a>
137139

138140
### actions.profile.getExternalLinksDone(handle) ⇒ <code>Action</code>
139-
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
141+
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
140142
**Todo**
141143

142144
- [ ] Figure out the purpose of this action
@@ -149,15 +151,15 @@ Creates an action that loads user achievements.
149151
<a name="module_actions.profile.getInfoInit"></a>
150152

151153
### actions.profile.getInfoInit() ⇒ <code>Action</code>
152-
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
154+
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
153155
**Todo**
154156

155157
- [ ] Figure out the purpose of this action.
156158

157159
<a name="module_actions.profile.getInfoDone"></a>
158160

159161
### actions.profile.getInfoDone(handle) ⇒ <code>Action</code>
160-
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
162+
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
161163
**Todo**
162164

163165
- [ ] Figure out the purpose of this action.
@@ -173,13 +175,13 @@ Creates an action that loads user achievements.
173175
Creates an action that signals beginning of loading the member's
174176
skills info.
175177

176-
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
178+
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
177179
<a name="module_actions.profile.getSkillsDone"></a>
178180

179181
### actions.profile.getSkillsDone(handle) ⇒ <code>Action</code>
180182
Creates an action that loads member's skills info.
181183

182-
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
184+
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
183185

184186
| Param | Type | Description |
185187
| --- | --- | --- |
@@ -190,7 +192,7 @@ Creates an action that loads member's skills info.
190192
### actions.profile.getStatsInit() ⇒ <code>Action</code>
191193
Creates an action that signals beginning of loading member's stats.
192194

193-
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
195+
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
194196
**Todo**
195197

196198
- [ ] This is similar to [actions.members.md#module_actions.members.getStatsInit](actions.members.md#module_actions.members.getStatsInit)!
@@ -200,7 +202,7 @@ Creates an action that signals beginning of loading member's stats.
200202
### actions.profile.getStatsDone(handle) ⇒ <code>Action</code>
201203
Creates an action that loads member's stats.
202204

203-
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
205+
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
204206

205207
| Param | Type | Description |
206208
| --- | --- | --- |
@@ -211,13 +213,13 @@ Creates an action that loads member's stats.
211213
### actions.profile.getLinkedAccountsInit() ⇒ <code>Action</code>
212214
Creates an action that signals beginning of getting linked accounts.
213215

214-
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
216+
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
215217
<a name="module_actions.profile.getLinkedAccountsDone"></a>
216218

217219
### actions.profile.getLinkedAccountsDone(profile, tokenV3) ⇒ <code>Action</code>
218220
Creates an action that gets linked accounts.
219221

220-
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
222+
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
221223

222224
| Param | Type | Description |
223225
| --- | --- | --- |
@@ -229,13 +231,13 @@ Creates an action that gets linked accounts.
229231
### actions.profile.getCredentialInit() ⇒ <code>Action</code>
230232
Creates an action that signals beginning of getting credential.
231233

232-
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
234+
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
233235
<a name="module_actions.profile.getCredentialDone"></a>
234236

235237
### actions.profile.getCredentialDone(profile, tokenV3) ⇒ <code>Action</code>
236238
Creates an action that gets credential.
237239

238-
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
240+
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
239241

240242
| Param | Type | Description |
241243
| --- | --- | --- |
@@ -247,13 +249,13 @@ Creates an action that gets credential.
247249
### actions.profile.getEmailPreferencesInit() ⇒ <code>Action</code>
248250
Creates an action that signals beginning of getting email preferences.
249251

250-
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
252+
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
251253
<a name="module_actions.profile.getEmailPreferencesDone"></a>
252254

253255
### actions.profile.getEmailPreferencesDone(profile, tokenV3) ⇒ <code>Action</code>
254256
Creates an action that gets email preferences.
255257

256-
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
258+
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
257259

258260
| Param | Type | Description |
259261
| --- | --- | --- |
@@ -265,13 +267,13 @@ Creates an action that gets email preferences.
265267
### actions.profile.uploadPhotoInit() ⇒ <code>Action</code>
266268
Creates an action that signals beginning of uploading user's photo.
267269

268-
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
270+
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
269271
<a name="module_actions.profile.uploadPhotoDone"></a>
270272

271273
### actions.profile.uploadPhotoDone(handle, tokenV3, file) ⇒ <code>Action</code>
272274
Creates an action that uploads user's photo.
273275

274-
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
276+
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
275277

276278
| Param | Type | Description |
277279
| --- | --- | --- |
@@ -284,19 +286,19 @@ Creates an action that uploads user's photo.
284286
### actions.profile.deletePhotoInit() ⇒ <code>Action</code>
285287
Creates an action that signals beginning of deleting user's photo.
286288

287-
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
289+
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
288290
<a name="module_actions.profile.updateProfileInit"></a>
289291

290292
### actions.profile.updateProfileInit() ⇒ <code>Action</code>
291293
Creates an action that signals beginning of updating user's profile.
292294

293-
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
295+
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
294296
<a name="module_actions.profile.updateProfileDone"></a>
295297

296298
### actions.profile.updateProfileDone(profile, tokenV3) ⇒ <code>Action</code>
297299
Creates an action that updates user's profile.
298300

299-
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
301+
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
300302

301303
| Param | Type | Description |
302304
| --- | --- | --- |
@@ -308,13 +310,13 @@ Creates an action that updates user's profile.
308310
### actions.profile.addSkillInit() ⇒ <code>Action</code>
309311
Creates an action that signals beginning of adding user's skill.
310312

311-
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
313+
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
312314
<a name="module_actions.profile.addSkillDone"></a>
313315

314316
### actions.profile.addSkillDone(handle, tokenV3, skill) ⇒ <code>Action</code>
315317
Creates an action that adds user's skill.
316318

317-
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
319+
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
318320

319321
| Param | Type | Description |
320322
| --- | --- | --- |
@@ -327,13 +329,13 @@ Creates an action that adds user's skill.
327329
### actions.profile.hideSkillInit() ⇒ <code>Action</code>
328330
Creates an action that signals beginning of hiding user's skill.
329331

330-
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
332+
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
331333
<a name="module_actions.profile.hideSkillDone"></a>
332334

333335
### actions.profile.hideSkillDone(handle, tokenV3, skill) ⇒ <code>Action</code>
334336
Creates an action that hides user's skill.
335337

336-
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
338+
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
337339

338340
| Param | Type | Description |
339341
| --- | --- | --- |
@@ -346,13 +348,13 @@ Creates an action that hides user's skill.
346348
### actions.profile.addWebLinkInit() ⇒ <code>Action</code>
347349
Creates an action that signals beginning of adding user's web link.
348350

349-
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
351+
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
350352
<a name="module_actions.profile.addWebLinkDone"></a>
351353

352354
### actions.profile.addWebLinkDone(handle, tokenV3, webLink) ⇒ <code>Action</code>
353355
Creates an action that adds user's web link.
354356

355-
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
357+
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
356358

357359
| Param | Type | Description |
358360
| --- | --- | --- |
@@ -365,7 +367,7 @@ Creates an action that adds user's web link.
365367
### actions.profile.deleteWebLinkInit(key) ⇒ <code>Action</code>
366368
Creates an action that signals beginning of deleting user's web link.
367369

368-
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
370+
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
369371

370372
| Param | Type | Description |
371373
| --- | --- | --- |
@@ -376,7 +378,7 @@ Creates an action that signals beginning of deleting user's web link.
376378
### actions.profile.deleteWebLinkDone(handle, tokenV3, webLink) ⇒ <code>Action</code>
377379
Creates an action that deletes user's web link.
378380

379-
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
381+
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
380382

381383
| Param | Type | Description |
382384
| --- | --- | --- |
@@ -389,13 +391,13 @@ Creates an action that deletes user's web link.
389391
### actions.profile.linkExternalAccountInit() ⇒ <code>Action</code>
390392
Creates an action that signals beginning of linking external account.
391393

392-
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
394+
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
393395
<a name="module_actions.profile.linkExternalAccountDone"></a>
394396

395397
### actions.profile.linkExternalAccountDone(profile, tokenV3, providerType, callbackUrl) ⇒ <code>Action</code>
396398
Creates an action that links external account.
397399

398-
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
400+
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
399401

400402
| Param | Type | Description |
401403
| --- | --- | --- |
@@ -409,7 +411,7 @@ Creates an action that links external account.
409411
### actions.profile.unlinkExternalAccountInit(providerType) ⇒ <code>Action</code>
410412
Creates an action that signals beginning of unlinking external account.
411413

412-
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
414+
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
413415

414416
| Param | Type | Description |
415417
| --- | --- | --- |
@@ -420,7 +422,7 @@ Creates an action that signals beginning of unlinking external account.
420422
### actions.profile.unlinkExternalAccountDone(profile, tokenV3, providerType) ⇒ <code>Action</code>
421423
Creates an action that unlinks external account.
422424

423-
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
425+
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
424426

425427
| Param | Type | Description |
426428
| --- | --- | --- |
@@ -433,13 +435,13 @@ Creates an action that unlinks external account.
433435
### actions.profile.saveEmailPreferencesInit() ⇒ <code>Action</code>
434436
Creates an action that signals beginning of saving email preferences.
435437

436-
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
438+
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
437439
<a name="module_actions.profile.saveEmailPreferencesDone"></a>
438440

439441
### actions.profile.saveEmailPreferencesDone(profile, tokenV3, preferences) ⇒ <code>Action</code>
440442
Creates an action that saves email preferences.
441443

442-
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
444+
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
443445

444446
| Param | Type | Description |
445447
| --- | --- | --- |
@@ -452,13 +454,13 @@ Creates an action that saves email preferences.
452454
### actions.profile.updatePasswordInit() ⇒ <code>Action</code>
453455
Creates an action that signals beginning of updating user password.
454456

455-
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
457+
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
456458
<a name="module_actions.profile.updatePasswordDone"></a>
457459

458460
### actions.profile.updatePasswordDone(profile, tokenV3, newPassword, oldPassword) ⇒ <code>Action</code>
459461
Creates an action that updates user password.
460462

461-
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
463+
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
462464

463465
| Param | Type | Description |
464466
| --- | --- | --- |
@@ -467,3 +469,26 @@ Creates an action that updates user password.
467469
| newPassword | <code>String</code> | The new password |
468470
| oldPassword | <code>String</code> | The old password |
469471

472+
473+
474+
### actions.profile.verifyMemberNewEmailInit() ⇒ <code>Action</code>
475+
476+
Creates an action that signals beginning of verify member new email.
477+
478+
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
479+
480+
<a name="module_actions.profile.verifyMemberNewEmailInit"></a>
481+
482+
483+
### actions.profile.verifyMemberNewEmailDone(handle, tokenV3, emailVerifyToken) ⇒ <code>Action</code>
484+
Creates an action that verify member new email.
485+
486+
**Kind**: static method of [<code>actions.profile</code>](#module_actions.profile)
487+
488+
<a name="module_actions.profile.verifyMemberNewEmailDone"></a>
489+
490+
| Param | Type | Description |
491+
| --- | --- | --- |
492+
| handle | <code>String</code> | Topcoder member handle. |
493+
| tokenV3 | <code>String</code> | Topcoder auth token v3. |
494+
| emailVerifyToken | <code>String</code> | The verify token of new email |

0 commit comments

Comments
 (0)