Skip to content
Snippets Groups Projects
Commit e7350cb5 authored by Jared Hancock's avatar Jared Hancock
Browse files

Pre fill user email address on sign-in page

parent 3a48e4f6
No related branches found
No related tags found
No related merge requests found
<?php <?php
$title=($cfg && is_object($cfg) && $cfg->getTitle())?$cfg->getTitle():'osTicket :: Support Ticket System'; $title=($cfg && is_object($cfg) && $cfg->getTitle())?$cfg->getTitle():'osTicket :: Support Ticket System';
$signin_url = ROOT_PATH . "login.php"
. ($thisclient ? "?e=".urlencode($thisclient->getEmail()) : "");
header("Content-Type: text/html; charset=UTF-8\r\n"); header("Content-Type: text/html; charset=UTF-8\r\n");
?> ?>
<!DOCTYPE html> <!DOCTYPE html>
...@@ -56,7 +58,7 @@ header("Content-Type: text/html; charset=UTF-8\r\n"); ...@@ -56,7 +58,7 @@ header("Content-Type: text/html; charset=UTF-8\r\n");
Guest User | <?php Guest User | <?php
} }
if ($cfg->getClientRegistrationMode() != 'disabled') { ?> if ($cfg->getClientRegistrationMode() != 'disabled') { ?>
<a href="<?php echo ROOT_PATH; ?>login.php">Sign In</a> <a href="<?php echo $signin_url; ?>">Sign In</a>
<?php <?php
} }
} ?> } ?>
......
...@@ -14,7 +14,9 @@ if ($thisclient && $thisclient->isGuest() ...@@ -14,7 +14,9 @@ if ($thisclient && $thisclient->isGuest()
<div id="msg_info"> <div id="msg_info">
<i class="icon-compass icon-2x pull-left"></i> <i class="icon-compass icon-2x pull-left"></i>
<strong>Looking for your other tickets?</strong></br> <strong>Looking for your other tickets?</strong></br>
<a href="login.php" style="text-decoration:underline">Sign in</a> or <a href="<?php echo ROOT_PATH; ?>login.php?e=<?php
echo urlencode($thisclient->getEmail());
?>" style="text-decoration:underline">Sign in</a> or
<a href="account.php?do=create" style="text-decoration:underline">register for an account</a> <a href="account.php?do=create" style="text-decoration:underline">register for an account</a>
for the best experience on our help desk.</div> for the best experience on our help desk.</div>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
$(document).ready(function(){ $(document).ready(function(){
$("input:not(.dp):visible:enabled:first").focus(); $('input:not(.dp):visible:enabled:input[value=""]:first').focus();
$('table.list tbody tr:odd').addClass('odd'); $('table.list tbody tr:odd').addClass('odd');
//Overlay //Overlay
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment