Add: Template Config options & comments;
This commit is contained in:
@@ -112,29 +112,3 @@ func (uc *UserController) VerifyMailHandler(c *gin.Context) {
|
||||
c.HTML(http.StatusOK, "verification_success.html", gin.H{"FirstName": user.FirstName})
|
||||
|
||||
}
|
||||
|
||||
/* func (uc *UserController) LoginUser(w http.ResponseWriter, r *http.Request) {
|
||||
var credentials struct {
|
||||
Email string `json:"email"`
|
||||
Password string `json:"password"`
|
||||
}
|
||||
user, err := services.UserService.AuthenticateUser(credentials.Email, credentials.Password)
|
||||
if err != nil {
|
||||
http.Error(w, err.Error(), http.StatusUnauthorized)
|
||||
return
|
||||
}
|
||||
json.NewEncoder(w).Encode(user)
|
||||
}
|
||||
*/
|
||||
/* func (uc *UserController) GetUserID(w http.ResponseWriter, r *http.Request) {
|
||||
vars := mux.Vars(r)
|
||||
id, err := strconv.Atoi(vars["id"])
|
||||
if err != nil {
|
||||
http.Error(w, "Invalid user ID", http.StatusBadRequest)
|
||||
return
|
||||
}
|
||||
user, err := services.UserService.GetUserByID(id)
|
||||
if err != nil {
|
||||
http.Error(w, "User not found: "+err.Error(), http.StatusNotFound)
|
||||
}
|
||||
} */
|
||||
|
||||
Reference in New Issue
Block a user