gochan-org / gochan

An imageboard written in Go that can run as a standalone server
http://gochan.org
BSD 2-Clause "Simplified" License
57 stars 19 forks source link

Can't login after a fresh install #17

Closed misaka00251 closed 4 years ago

misaka00251 commented 4 years ago

So I already know the default username and password: image

But it won't log in...

image

No error output in browser console.

Gochan log:

Feb 08 20:36:34 systemd[1]: Started gochan Daemon.
Feb 08 20:36:35 gochan[10263]: Starting gochan v2.11.2., using verbosity level 1
Feb 08 20:36:35 gochan[10263]: Initializing server...
Feb 08 20:36:35 gochan[10263]: This looks like a new installation. Creating /test/ and a new staff member.
Feb 08 20:36:35 gochan[10263]: Username: admin
Feb 08 20:36:35 gochan[10263]: Password: password
Feb 08 20:36:35 gochan[10263]: Failed creating /test/ with error: [ERROR] src/gochan.go:27: Error 1364: Field 'default_style' doesn't have a default value
Feb 08 20:36:35 gochan[10263]: Loading and parsing templates...
Feb 08 20:36:35 gochan[10263]: Built gochan.min.js and consts.js successfully.
misaka00251 commented 4 years ago

Well, I enabled Mariadb's general query log, and I can't see anything when I'm login.

onekopaka commented 4 years ago

Check the mod log (it's a seperate file) for entries like "Rejected login from possible spambot"

If you see that, the problem is that you need to set your DomainRegex in your configuration file so that the "Referer" (HTTP does spell it that way lol) header is matches it.

misaka00251 commented 4 years ago

Ah, I need to disable add_header Referrer-Policy no-referrer.