@@ -222,6 +222,7 @@ - (void)phoneCodeBtnClicked:(PhoneCodeButton *)sender{
222
222
sender.enabled = NO ;
223
223
[[CodingNetAPIClient sharedJsonClient ] requestJsonDataWithPath: @" api/account/password/forget" withParams: @{@" account" : _userStr} withMethodType: Post andBlock: ^(id data, NSError *error) {
224
224
if (data) {
225
+ [NSObject showHudTipStr: @" 验证码发送成功" ];
225
226
[sender startUpTimer ];
226
227
}else {
227
228
[sender invalidateTimer ];
@@ -241,8 +242,8 @@ - (void)footerBtnClicked:(id)sender{
241
242
}
242
243
[self .footerBtn startQueryAnimate ];
243
244
NSMutableDictionary *params = @{@" account" : _userStr,
244
- @" password" : _password,
245
- @" confirm" : _confirm_password,
245
+ @" password" : [ _password sha1Str ] ,
246
+ @" confirm" : [ _confirm_password sha1Str ] ,
246
247
@" code" : _phoneCode}.mutableCopy ;
247
248
params[@" j_captcha" ] = _j_captcha;
248
249
[[CodingNetAPIClient sharedJsonClient ] requestJsonDataWithPath: @" api/account/password/reset" withParams: params withMethodType: Post andBlock: ^(id data, NSError *error) {
@@ -253,12 +254,11 @@ - (void)footerBtnClicked:(id)sender{
253
254
}
254
255
}];
255
256
}else {
256
- NSString *tipStr = @" 重置密码邮件已经发送,请尽快去邮箱查看" ;
257
257
[self .footerBtn startQueryAnimate ];
258
258
[[CodingNetAPIClient sharedJsonClient ] requestJsonDataWithPath: @" api/account/password/forget" withParams: @{@" account" : _userStr, @" j_captcha" : _j_captcha} withMethodType: Post andBlock: ^(id data, NSError *error) {
259
259
[self .footerBtn stopQueryAnimate ];
260
260
if (data) {
261
- [NSObject showHudTipStr: tipStr ];
261
+ [NSObject showHudTipStr: @" 重置密码邮件已经发送,请尽快去邮箱查看 " ];
262
262
[self .navigationController popToRootViewControllerAnimated: YES ];
263
263
}
264
264
}];
0 commit comments