mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-26 17:14:07 +01:00
On first run, tracks now automatically redirects to signup page to create the admin user.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@383 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
parent
d44d90761f
commit
c407fc2463
2 changed files with 11 additions and 2 deletions
|
|
@ -21,7 +21,11 @@ class LoginController < ApplicationController
|
|||
else
|
||||
@login = params['user_login']
|
||||
notify :warning, "Login unsuccessful"
|
||||
end
|
||||
end
|
||||
when :get
|
||||
if User.no_users_yet?
|
||||
redirect_to :action => 'signup'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue