Allow portal contacts to reset their passwords via email

This commit is contained in:
Marcus Hill
2022-10-01 21:32:19 +01:00
parent 851ca7fae5
commit 6529ff8bbf
6 changed files with 349 additions and 23 deletions

View File

@@ -4,8 +4,10 @@
* Landing / Home page for the client portal
*/
include('../config.php');
include('../functions.php');
$session_company_id = 1;
require_once('../config.php');
require_once('../functions.php');
require_once ('../get_settings.php');
if(!isset($_SESSION)){
// HTTP Only cookies
@@ -121,6 +123,11 @@ if($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['login'])){
<button type="submit" class="btn btn-success btn-block mb-3" name="login">Login</button>
<?php
if (!empty($config_smtp_host)) { ?>
<a href="login_reset.php">Forgotten password?</a>
<?php } ?>
</form>
<?php