fix password reset flow

This commit is contained in:
Asim Aslam
2021-11-30 10:02:41 +00:00
parent 8b5897b869
commit 68103309f8
2 changed files with 9 additions and 3 deletions

View File

@@ -117,7 +117,7 @@ func (domain *Domain) SavePasswordResetCode(ctx context.Context, userID, code st
return &pwcode, err
}
func (domain *Domain) DeletePasswordRestCode(ctx context.Context, userId, code string) error {
func (domain *Domain) DeletePasswordResetCode(ctx context.Context, userId, code string) error {
_, err := domain.db.Delete(ctx, &db.DeleteRequest{
Table: "password-reset-codes",
Id: userId + "-" + code,