mirror of
https://github.com/XShengTech/MEGREZ.git
synced 2026-05-03 13:02:38 +00:00
[Refactor] ♻️ Change ResetPassword API URL #15
This commit is contained in:
+1
-1
@@ -36,7 +36,7 @@ export default {
|
||||
return ajax('user/register', 'post', { data })
|
||||
},
|
||||
UserResetPassword(data) {
|
||||
return ajax('user/reset-password', 'post', { data })
|
||||
return ajax('user/password', 'post', { data })
|
||||
},
|
||||
UserVerifyRequest() {
|
||||
return ajax(`user/verify`, 'post', {})
|
||||
|
||||
@@ -24,7 +24,7 @@ func InitUser(party router.Party) {
|
||||
party.Get("/logout", middleware.AuthCheck, logoutHandler)
|
||||
party.Post("/register", registerHandler)
|
||||
party.Get("/profile", middleware.AuthCheck, profileHandler)
|
||||
party.Post("/reset-password", middleware.AuthCheck, resetPasswordHandler)
|
||||
party.Post("/password", middleware.AuthCheck, resetPasswordHandler)
|
||||
party.Get("/verify/{code:string}", verifyHandler)
|
||||
party.Post("/verify", middleware.AuthCheck, verifySendHandler)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user