File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -211,15 +211,15 @@ function setPageOrder(pageorder, champion) {
211
211
} ) ;
212
212
}
213
213
214
- function setMailAddress ( mailaddress , reset ) {
214
+ function setMailAddress ( mailaddress , reset , currpassword ) {
215
215
if ( reset === undefined || reset === null ) {
216
216
reset = false ;
217
217
}
218
218
219
219
return _req ( {
220
220
url : `${ HOST } /users/me/mail` ,
221
221
method : 'POST' ,
222
- json : { mailaddress, reset } ,
222
+ json : { mailaddress, reset, currpassword } ,
223
223
} ) ;
224
224
}
225
225
Original file line number Diff line number Diff line change @@ -258,11 +258,11 @@ export default {
258
258
259
259
if (this .user .mailaddress !== this .originMailAddress ) {
260
260
if (! this .user .mailaddress ) {
261
- Rest .setMailAddress (' ' , true )
261
+ Rest .setMailAddress (' ' , true , currpw )
262
262
.then (() => {})
263
263
.catch (console .error );
264
264
} else {
265
- Rest .setMailAddress (this .user .mailaddress )
265
+ Rest .setMailAddress (this .user .mailaddress , false , currpw )
266
266
.then (() => {
267
267
this .$refs .mailInfo .show ();
268
268
})
You can’t perform that action at this time.
0 commit comments