Skip to content

Commit bc512c0

Browse files
committed
fix(api): cannot reset password
1 parent 9f74c49 commit bc512c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GZCTF/Controllers/AccountController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ public async Task<IActionResult> PasswordReset([FromBody] PasswordResetModel mod
212212

213213
user.UpdateByHttpContext(HttpContext);
214214

215-
var token = Codec.Base64.Encode(model.RToken);
215+
var token = Codec.Base64.Decode(model.RToken);
216216
var result = await userManager.ResetPasswordAsync(user, token, password);
217217

218218
if (!result.Succeeded)

0 commit comments

Comments
 (0)