junebug 0.0.16 → 0.0.17
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/lib/junebug.rb +1 -1
- data/lib/junebug/controllers.rb +2 -2
- metadata +1 -1
data/CHANGELOG
CHANGED
data/lib/junebug.rb
CHANGED
data/lib/junebug/controllers.rb
CHANGED
@@ -148,7 +148,7 @@ module Junebug::Controllers
|
|
148
148
|
if @user
|
149
149
|
if @user.password == input.password
|
150
150
|
@state.user = @user
|
151
|
-
input.return_to.blank? ? redirect(Junebug.startpage) : redirect(input.return_to)
|
151
|
+
input.return_to.blank? ? redirect(Junebug.startpage) : redirect(Junebug.config['url'] + input.return_to)
|
152
152
|
return
|
153
153
|
else
|
154
154
|
@notice = 'Authentication failed'
|
@@ -170,7 +170,7 @@ module Junebug::Controllers
|
|
170
170
|
class Logout
|
171
171
|
def get
|
172
172
|
@state.user = nil
|
173
|
-
input.return_to.blank? ? redirect(Junebug.startpage) : redirect(input.return_to)
|
173
|
+
input.return_to.blank? ? redirect(Junebug.startpage) : redirect(Junebug.config['url'] + input.return_to)
|
174
174
|
end
|
175
175
|
end
|
176
176
|
end
|