Commit a1917246 authored by  JosephK's avatar JosephK

[recovery] fix bookmarklet

parent 6b859022
......@@ -17,7 +17,7 @@ function hook_recovery_render_header($data)
unset($_SESSION['tokens'][$_POST['token']]);
$ShaarliURL = (isset($_SERVER['HTTPS']) ? 'https' : 'http') . '://'.$_SERVER['HTTP_HOST'].str_replace($_SERVER['DOCUMENT_ROOT'], '', dirname($_SERVER['SCRIPT_FILENAME']));
$ShaarliURL = (isset($_SERVER['HTTPS']) ? 'https' : 'http') . '://'.$_SERVER['HTTP_HOST'].str_replace($_SERVER['DOCUMENT_ROOT'], '', dirname($_SERVER['SCRIPT_FILENAME'])).'/';
$c = $GLOBALS;
if($GLOBALS['config']['RECOVERY']['attempt'] >= 10) {
......@@ -116,7 +116,8 @@ function hook_recovery_render_header($data)
}
}
$data['login'] .= '</div></div>
<div id="rForm" style="display:none;"><form method="POST" class="col-md-6 col-md-offset-3 ombre clearfix" action="?do=login&recover" name="recoverform" id="recoverform">
<div id="rForm" style="display:none;"><form method="POST" class="col-md-6 col-md-offset-3 ombre clearfix" action="?do=login&recover'.
((isset($_GET['source']) && $_GET['source']=='bookmarklet') ? '&source=bookmarklet' : '').'" name="recoverform" id="recoverform">
<input type="hidden" name="token" value="'.getToken().'">
<h2>'. t('Password recovery') .'</h2>
<div class="form-group">
......
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