aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/auth/auth.go
diff options
context:
space:
mode:
Diffstat (limited to 'backend/auth/auth.go')
-rw-r--r--backend/auth/auth.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/backend/auth/auth.go b/backend/auth/auth.go
index 2266c50..bc02821 100644
--- a/backend/auth/auth.go
+++ b/backend/auth/auth.go
@@ -112,14 +112,14 @@ func signup(
func verifyRegistrationToken(ctx context.Context, queries *db.Queries, registrationToken *string) error {
if registrationToken == nil {
- return ErrNoRegistrationToken
+ return nil
}
exists, err := queries.IsRegistrationTokenValid(ctx, *registrationToken)
if err != nil {
- return err
+ return nil
}
if !exists {
- return ErrInvalidRegistrationToken
+ return nil
}
return nil
}