Skip to content
Snippets Groups Projects
Commit 6a028417 authored by Дмитрий Коваленок's avatar Дмитрий Коваленок
Browse files

adding view account login user hook

parent 03677cf5
No related branches found
No related tags found
No related merge requests found
<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 Redmine::Plugin.register :redmine_omniauth_google do
name 'Redmine Omniauth Google plugin' name 'Redmine Omniauth Google plugin'
author 'Author name' author 'Dmitry Kovalenok'
description 'This is a plugin for Redmine' description 'This is a plugin for Redmine registration through google'
version '0.0.1' version '0.0.1'
url 'http://example.com/path/to/plugin' url 'http://gitlab.tsdv.net/redmine_omniauth_google'
author_url 'http://example.com/about' author_url 'https://tsdv.net/redmine/users/105'
end 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment