mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-03 08:50:42 +02:00
authenticate: remove useless/duplicated code block (#962)
This commit is contained in:
parent
6ef74806c7
commit
b2f6b42798
1 changed files with 1 additions and 4 deletions
|
@ -194,10 +194,7 @@ func (a *Authenticate) SignIn(w http.ResponseWriter, r *http.Request) error {
|
|||
a.sessionStore.ClearSession(w, r)
|
||||
return err
|
||||
}
|
||||
if err != nil {
|
||||
a.sessionStore.ClearSession(w, r)
|
||||
return err
|
||||
}
|
||||
|
||||
// user impersonation
|
||||
if impersonate := r.FormValue(urlutil.QueryImpersonateAction); impersonate != "" {
|
||||
s.SetImpersonation(r.FormValue(urlutil.QueryImpersonateEmail), r.FormValue(urlutil.QueryImpersonateGroups))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue