adding view account login user hook

parent 03677cf5
<p><%= "render with google" %></p>
\ No newline at end of file
require 'redmine'
require_dependency 'redmine_omniauth_google/hooks/view_account_login_bottom_hook'
Redmine::Plugin.register :redmine_omniauth_google do
name 'Redmine Omniauth Google plugin'
author 'Author name'
description 'This is a plugin for Redmine'
author 'Dmitry Kovalenok'
description 'This is a plugin for Redmine registration through google'
version '0.0.1'
url 'http://example.com/path/to/plugin'
author_url 'http://example.com/about'
url 'http://gitlab.tsdv.net/redmine_omniauth_google'
author_url 'https://tsdv.net/redmine/users/105'
end
module RedmineOmniauthGoogle
module Hooks
class ViewAccountLoginBottomHook < Redmine::Hook::ViewListener
# def view_account_login_bottom context = {}
# context[:controller].send(:render_to_string, {
# partial: "hooks/redmine_omniauth_google/view_account_login_bottom",
# locals: context
# })
# end
render_on :view_account_login_bottom,
partial: "hooks/redmine_omniauth_google/view_account_login_bottom"
end
end
end
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment