Refactor auth_user usecase: split in multiple files
This commit is contained in:
parent
cffbc104ae
commit
0495ab4693
16 changed files with 813 additions and 391 deletions
|
|
@ -128,7 +128,8 @@ func (ac *AuthUserController) EmailValidationLink(c *gin.Context) {
|
|||
func (ac *AuthUserController) RecoverUserAcct(c *gin.Context) {
|
||||
user := c.MustGet("authuser").(*happydns.UserAuth)
|
||||
|
||||
happydns.ApiResponse(c, ac.auService.GenerateRecoveryLink(user), nil)
|
||||
link, err := ac.auService.GenerateRecoveryLink(user)
|
||||
happydns.ApiResponse(c, link, err)
|
||||
}
|
||||
|
||||
type resetPassword struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue