mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-12-01 04:12:22 +03:00
70 lines
1.6 KiB
PHP
70 lines
1.6 KiB
PHP
<?php defined('BASEPATH') or exit('No direct script access allowed');
|
|
|
|
/* ----------------------------------------------------------------------------
|
|
* Easy!Appointments - Open Source Web Scheduler
|
|
*
|
|
* @package EasyAppointments
|
|
* @author A.Tselegidis <alextselegidis@gmail.com>
|
|
* @copyright Copyright (c) 2013 - 2020, Alex Tselegidis
|
|
* @license https://opensource.org/licenses/GPL-3.0 - GPLv3
|
|
* @link https://easyappointments.org
|
|
* @since v1.0.0
|
|
* ---------------------------------------------------------------------------- */
|
|
|
|
/**
|
|
* User controller.
|
|
*
|
|
* Handles the user related operations.
|
|
*
|
|
* @package Controllers
|
|
*/
|
|
class User extends EA_Controller {
|
|
/**
|
|
* User constructor.
|
|
*/
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
|
|
$this->load->library('accounts');
|
|
$this->load->library('email_messages');
|
|
}
|
|
|
|
/**
|
|
* Redirect to the login page.
|
|
*/
|
|
public function index()
|
|
{
|
|
redirect('login');
|
|
}
|
|
|
|
/**
|
|
* Display the login page.
|
|
*
|
|
* @deprecated Since 1.5 Use the Login controller instead.
|
|
*/
|
|
public function login()
|
|
{
|
|
redirect('login');
|
|
}
|
|
|
|
/**
|
|
* Display the logout page.
|
|
*
|
|
* @deprecated Since 1.5 Use the Logout controller instead.
|
|
*/
|
|
public function logout()
|
|
{
|
|
redirect('logout');
|
|
}
|
|
|
|
/**
|
|
* Display the password recovery page.
|
|
*
|
|
* @deprecated Since 1.5 Use the Logout controller instead.
|
|
*/
|
|
public function forgot_password()
|
|
{
|
|
redirect('recovery');
|
|
}
|
|
}
|