File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change
1
+ package common
2
+
3
+ import (
4
+ "fmt"
5
+ "github.com/google/uuid"
6
+ "strings"
7
+ )
8
+
9
+ func CreateID (prefix string ) string {
10
+ str := uuid .New ().String ()
11
+ str = strings .ReplaceAll (str , "-" , "" )
12
+ return fmt .Sprintf ("%s_%s" , prefix , str )
13
+ }
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ func main() {
64
64
{
65
65
userAPI .POST ("/signin" , userHandlers .SignIn )
66
66
userAPI .POST ("/signup" , userHandlers .SignUp )
67
- userAPI .POST ("/logout " , auth .ValidateAuth (userRepository ), userHandlers .LogOut )
67
+ userAPI .POST ("/signout " , auth .ValidateAuth (userRepository ), userHandlers .LogOut )
68
68
userAPI .POST ("/session/unlock" , userHandlers .UnlockSession )
69
69
userAPI .POST ("/forgot-password/" , userHandlers .SendForgotPassword )
70
70
userAPI .POST ("/forgot-password/reset" , userHandlers .ForgotPassword )
You can’t perform that action at this time.
0 commit comments