File tree Expand file tree Collapse file tree
internal/app/server/handler/user Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,8 +37,6 @@ func Create(c *gin.Context) {
3737 return
3838 }
3939
40- captcha .Clear (data .CaptchaID )
41-
4240 err = command .Bus .Dispatch (messages .New (
4341 create .CommandKey ,
4442 & create.CommandAttributes {
@@ -56,6 +54,8 @@ func Create(c *gin.Context) {
5654 return
5755 }
5856
57+ captcha .Clear (data .CaptchaID )
58+
5959 c .JSON (http .StatusCreated , & reply.JSON {
6060 Success : true ,
6161 Message : "Account created" ,
Original file line number Diff line number Diff line change @@ -37,8 +37,6 @@ func Forgot(c *gin.Context) {
3737 return
3838 }
3939
40- captcha .Clear (data .CaptchaID )
41-
4240 err = command .Bus .Dispatch (messages .New (
4341 forgot .CommandKey ,
4442 & forgot.CommandAttributes {
@@ -53,6 +51,8 @@ func Forgot(c *gin.Context) {
5351 return
5452 }
5553
54+ captcha .Clear (data .CaptchaID )
55+
5656 c .JSON (http .StatusOK , & reply.JSON {
5757 Success : true ,
5858 Message : "Link sent. Please check your inbox" ,
You can’t perform that action at this time.
0 commit comments