Skip to content

Commit

Permalink
fix: password reset (#258)
Browse files Browse the repository at this point in the history
* feat: translate error messages in error interceptor

* fix: add statik import

* feat: user error msgs

* feat: add translations

* feat: add translations

* feat: add translations

* feat: add translations

* feat: add translations

* feat: add translations

* some fixes and improved error messages

* display loginname only on authReq

* fix: login names (and query) (#253)

* fix: add interceptors for console (#255)

* add interceptors for console

* add interceptors for console to env.json

* fix: query side (#257)

* fix: project by id return projectview

* fix: return always view model on query side

* fix: return always view model on query side

Co-authored-by: Fabiennne <fabienne.gerschwiler@gmail.com>
Co-authored-by: Fabi <38692350+fgerschwiler@users.noreply.github.com>
  • Loading branch information
3 people committed Jun 23, 2020
1 parent 45bd910 commit 83ff4c8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/login/handler/init_password_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,13 @@ func (l *Login) renderInitPassword(w http.ResponseWriter, r *http.Request, authR
}

func (l *Login) renderInitPasswordDone(w http.ResponseWriter, r *http.Request, authReq *model.AuthRequest) {
loginName := ""
if authReq != nil {
loginName = authReq.LoginName
}
data := userData{
baseData: l.getBaseData(r, authReq, "Password Init Done", "", ""),
LoginName: authReq.LoginName,
LoginName: loginName,
}
l.renderer.RenderTemplate(w, r, l.renderer.Templates[tmplInitPasswordDone], data, nil)
}

0 comments on commit 83ff4c8

Please sign in to comment.