Warn about host/request settings that will not work
authorMarius Mathiesen <marius@shortcut.no>
Thu, 8 Jul 2010 12:09:37 +0000 (14:09 +0200)
committerMarius Mathiesen <marius@shortcut.no>
Thu, 8 Jul 2010 12:09:37 +0000 (14:09 +0200)
commit51451b5614a857df28a4e74a6fd93fa0f8c1c4d6
tree39b9c92be5f14e7b163b9710fb1114fa042f4f15
parentfd8a1716b26dc0edc8f25bc23516ff1b804ee235
Warn about host/request settings that will not work

- gitorious.yml needs to have a fqdn for sessions to work
- Logging in using a different host name than that defined in gitorious.yml will not work

Warn about both in the Rails log
app/controllers/sessions_controller.rb
config/initializers/gitorious_config.rb
lib/subdomain_validation.rb [new file with mode: 0644]
test/unit/lib/subdomain_validation_test.rb [new file with mode: 0644]