Skip to content

Commit

Permalink
resolve back_url bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Redmine committed Oct 17, 2012
1 parent e3ffe9f commit b680411
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# English strings go here for Rails i18n
en:
label_loginRemoteUser: "SSL Login"
button_login_remote_user: "SSL Login"
user_auth_source_not_remote_user: "User has not set auth source to RemoteUser"
7 changes: 6 additions & 1 deletion init.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
end

Redmine::MenuManager.map :account_menu do |menu|
menu.push :loginRemoteUser, :signinRemoteUser_path, :if => Proc.new { !User.current.logged? }
#menu.push :loginRemoteUser, :signinRemoteUser_path, :if => Proc.new { !User.current.logged? }
#menu.push :loginRemoteUser, { :controler=> 'my', :action=> 'signinRemoteUser' }, :if => Proc.new { !User.current.logged? }
#menu.push :loginRemoteUser, { :controller=> 'account_remote_user', :action=> 'signin_remote_user' }, :if => Proc.new { !User.current.logged? }
menu.push :loginRemoteUser, { :controller=> 'account_remote_user', :action=> 'login_remote_user', :ahoj=> '' }, :if => Proc.new { !User.current.logged? }
end

require_dependency 'redmine_remote_user_auth/hooks'
require_dependency 'redmine_remote_user_auth/hooks.rb'
5 changes: 5 additions & 0 deletions lib/redmine_remote_user_auth/hooks.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module RedmineRemoteUserAuth;
class Hooks < Redmine::Hook::ViewListener
render_on(:view_account_login_bottom, :partial => 'account_remote_user/login_ssl_link')
end
end

0 comments on commit b680411

Please sign in to comment.