[Rt-commit] rt branch, 4.0/mobile-login, created. rt-4.0.0rc6-21-g4b09824
Shawn Moore
sartak at bestpractical.com
Thu Mar 10 13:28:34 EST 2011
The branch, 4.0/mobile-login has been created
at 4b098249067b899e4b467699dffbdf4fb7c8d76f (commit)
- Log -----------------------------------------------------------------
commit 4b098249067b899e4b467699dffbdf4fb7c8d76f
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Thu Mar 10 13:28:08 2011 -0500
Redirect to /m/login in /NoAuth/Login if it's a mobile client
diff --git a/share/html/NoAuth/Login.html b/share/html/NoAuth/Login.html
index b33bb0a..7ece665 100755
--- a/share/html/NoAuth/Login.html
+++ b/share/html/NoAuth/Login.html
@@ -46,6 +46,11 @@
%#
%# END BPS TAGGED BLOCK }}}
<%init>
+if ( RT::Interface::Web->MobileClient()) {
+ RT::Interface::Web::Redirect(RT->Config->Get('WebURL') ."m/login");
+ $m->abort();
+}
+
my ($good, $msg) = RT::Interface::Web::AttemptPasswordAuthentication(\%ARGS);
$ARGS{'actions'} = [$msg] if not $good and $msg;
</%init>
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list