Skip to content

Commit

Permalink
Redirect to Galleries after Auth
Browse files Browse the repository at this point in the history
  • Loading branch information
IamDushu committed Jul 15, 2024
1 parent cd0cca6 commit e04c3fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/users.go
Original file line number Diff line number Diff line change
@@ -55,7 +55,7 @@ func (u Users) Create(w http.ResponseWriter, r *http.Request) {
return
}
setCookie(w, CookieSession, session.Token)
http.Redirect(w, r, "/users/me", http.StatusFound)
http.Redirect(w, r, "/galleries", http.StatusFound)
}

func (u Users) SignIn(w http.ResponseWriter, r *http.Request) {
@@ -89,7 +89,7 @@ func (u Users) ProcessSignIn(w http.ResponseWriter, r *http.Request) {
return
}
setCookie(w, CookieSession, session.Token)
http.Redirect(w, r, "/users/me", http.StatusFound)
http.Redirect(w, r, "/galleries", http.StatusFound)
}

func (u Users) CurrentUser(w http.ResponseWriter, r *http.Request) {

0 comments on commit e04c3fa

Please sign in to comment.