1
0
mirror of https://github.com/raseels-repos/golang-saas-starter-kit.git synced 2025-06-08 23:56:37 +02:00

web-api remove validation reference to removed methods

This commit is contained in:
Lee Brown 2019-08-07 21:20:58 -08:00
parent a08becba0f
commit d617400e5a

View File

@ -42,10 +42,6 @@ func (c *Signup) Signup(ctx context.Context, w http.ResponseWriter, r *http.Requ
// Claims are optional as authentication is not required ATM for this method. // Claims are optional as authentication is not required ATM for this method.
claims, _ := auth.ClaimsFromContext(ctx) claims, _ := auth.ClaimsFromContext(ctx)
// Hack to allow custom validation to be handled by business logic package.
ctx = context.WithValue(ctx, signup.KeyTagUniqueEmail, true)
ctx = context.WithValue(ctx, signup.KeyTagUniqueName, true)
var req signup.SignupRequest var req signup.SignupRequest
if err := web.Decode(ctx, r, &req); err != nil { if err := web.Decode(ctx, r, &req); err != nil {
if _, ok := errors.Cause(err).(*weberror.Error); !ok { if _, ok := errors.Cause(err).(*weberror.Error); !ok {