This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package dto | |
| //Login credential | |
| type LoginCredentials struct { | |
| Email string `form:"email"` | |
| Password string `form:"password"` | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package service | |
| import ( | |
| "fmt" | |
| "os" | |
| "time" | |
| "github.com/dgrijalva/jwt-go" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package service | |
| type LoginService interface { | |
| LoginUser(email string, password string) bool | |
| } | |
| type loginInformation struct { | |
| email string | |
| password string | |
| } |
NewerOlder