Skip to content

Commit 4fbefc8

Browse files
committed
[skip ci][auth] change default recovery submit msg
1 parent d2b3382 commit 4fbefc8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Ubiquity/controllers/auth/traits/AuthAccountRecoveryTrait.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ protected function prepareEmailAccountRecovery(string $email){
262262
public function recoverySubmit(){
263263
if(URequest::isPost() && URequest::has('key')){
264264
$isValid=false;
265-
$msg='This account recovery link is expired!';
265+
$msg='This account recovery link is invalid!';
266266
$tokens = $this->getAuthTokensAccountRecovery();
267267
$key=URequest::post('key');
268268
if ($tokens->exists($key)) {
@@ -279,6 +279,8 @@ public function recoverySubmit(){
279279
$msg='An error occurs when updating your password!';
280280
}
281281
}
282+
}else{
283+
$msg='This account recovery link is expired!';
282284
}
283285
$tokens->remove($key);
284286
}

0 commit comments

Comments
 (0)