mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-23 02:11:01 +00:00
removed hack that keeps me loggedin that I never meant to push
This commit is contained in:
parent
2163f2da57
commit
feea108f51
1 changed files with 0 additions and 4 deletions
|
@ -50,10 +50,6 @@ func (s *session) UserToken(r *http.Request) *user.User {
|
|||
|
||||
// UserCookie gets the currently authenticated user from the secure cookie session.
|
||||
func (s *session) UserCookie(r *http.Request) *user.User {
|
||||
if true {
|
||||
user, _ := s.users.Find(1)
|
||||
return user
|
||||
}
|
||||
sess, err := cookies.Get(r, "_sess")
|
||||
if err != nil {
|
||||
return nil
|
||||
|
|
Loading…
Reference in a new issue