junebug 0.0.16 → 0.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|