Create separate signin page, make auth redirect there.
This commit is contained in:
parent
60a1eba2eb
commit
7c2d7eef25
3 changed files with 7 additions and 1 deletions
|
|
@ -213,6 +213,11 @@ func getServiceRequestUpdates(w http.ResponseWriter, r *http.Request) {
|
|||
func getSettings(w http.ResponseWriter, r *http.Request, u *models.User) {
|
||||
htmlSettings(w, r, u)
|
||||
}
|
||||
|
||||
func getSignin(w http.ResponseWriter, r *http.Request) {
|
||||
errorCode := r.URL.Query().Get("error")
|
||||
htmlSignin(w, errorCode)
|
||||
}
|
||||
func getSignup(w http.ResponseWriter, r *http.Request) {
|
||||
htmlSignup(w, r.URL.Path)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue