mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-02-17 03:45:13 +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.
|
// UserCookie gets the currently authenticated user from the secure cookie session.
|
||||||
func (s *session) UserCookie(r *http.Request) *user.User {
|
func (s *session) UserCookie(r *http.Request) *user.User {
|
||||||
if true {
|
|
||||||
user, _ := s.users.Find(1)
|
|
||||||
return user
|
|
||||||
}
|
|
||||||
sess, err := cookies.Get(r, "_sess")
|
sess, err := cookies.Get(r, "_sess")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in a new issue