[Bps-public-commit] rt-authen-oauth2 branch, master, updated. 0.11-1-gb28d51b
Jim Brandt
jbrandt at bestpractical.com
Thu Apr 18 08:45:54 EDT 2019
The branch, master has been updated
via b28d51bc0eb694003d45f93766868b7c5242ad45 (commit)
from 96288e1dae98de3fe5859f60fe30ac2a0a4917d1 (commit)
Summary of changes:
html/Callbacks/OAuth/Elements/Login/Default | 2 +-
lib/RT/Authen/OAuth2.pm | 2 ++
static/css/rt-authen-oauth2.css | 4 ++++
3 files changed, 7 insertions(+), 1 deletion(-)
create mode 100644 static/css/rt-authen-oauth2.css
- Log -----------------------------------------------------------------
commit b28d51bc0eb694003d45f93766868b7c5242ad45
Author: Jim Brandt <jbrandt at bestpractical.com>
Date: Thu Apr 18 08:44:15 2019 -0400
Reposition Google login button
Center the Google login button below the default RT login form
rather than right aligning with the RT login button because
the Google button isn't connected to the username/password
fields.
diff --git a/html/Callbacks/OAuth/Elements/Login/Default b/html/Callbacks/OAuth/Elements/Login/Default
index d0904f0..8741500 100644
--- a/html/Callbacks/OAuth/Elements/Login/Default
+++ b/html/Callbacks/OAuth/Elements/Login/Default
@@ -1,7 +1,7 @@
<%init>
return unless RT->Config->Get('EnableOAuth2');
</%init>
-<div class="button-row">
+<div id="authen-oauth-login">
% my $next_state = $session{NextPage}->{$ARGS{next} || ''};
% $next_state = $next_state->{url} if ref $next_state;
<span class="input"><a
diff --git a/lib/RT/Authen/OAuth2.pm b/lib/RT/Authen/OAuth2.pm
index 6100c03..ad8eabb 100644
--- a/lib/RT/Authen/OAuth2.pm
+++ b/lib/RT/Authen/OAuth2.pm
@@ -11,6 +11,8 @@ use RT::Authen::OAuth2::Google;
use URI::Escape;
+RT->AddStyleSheets('rt-authen-oauth2.css');
+
=head1 NAME
RT-Authen-OAuth2 - External authentication for OAuth 2 sources, like Google, Twitter, GitHub, etc.
diff --git a/static/css/rt-authen-oauth2.css b/static/css/rt-authen-oauth2.css
new file mode 100644
index 0000000..abd11bd
--- /dev/null
+++ b/static/css/rt-authen-oauth2.css
@@ -0,0 +1,4 @@
+#login-box img {
+ margin-top: 10px;
+ margin-left: 100px;
+}
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list