diff options
| author | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-05-01 04:33:06 +0300 |
|---|---|---|
| committer | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-05-01 04:33:06 +0300 |
| commit | 2b4ed611e7e001ad8ea93ef3e8cdce35bc56dc07 (patch) | |
| tree | 0da2582de2cef450f6366a9cff28e47353eddb2e /public/app/extends/Classroom_manager.php | |
| parent | 77b3a3ebf23598b82d035ead6df43b2c2ca885f4 (diff) | |
| download | gyraf1gov-2b4ed611e7e001ad8ea93ef3e8cdce35bc56dc07.tar.gz gyraf1gov-2b4ed611e7e001ad8ea93ef3e8cdce35bc56dc07.tar.bz2 gyraf1gov-2b4ed611e7e001ad8ea93ef3e8cdce35bc56dc07.zip | |
form designer; setup main forms of the application
Diffstat (limited to 'public/app/extends/Classroom_manager.php')
| -rw-r--r-- | public/app/extends/Classroom_manager.php | 106 |
1 files changed, 0 insertions, 106 deletions
diff --git a/public/app/extends/Classroom_manager.php b/public/app/extends/Classroom_manager.php deleted file mode 100644 index ea2e891..0000000 --- a/public/app/extends/Classroom_manager.php +++ /dev/null @@ -1,106 +0,0 @@ -<?php -namespace app\extends; - -use UserManager; -use Registry; - - -/** ClassUserManager - * - * extends (anom's) UserManager - * - * this way it specializes the UserManagement - * according to this app's special rules - * - */ -class Classroom_manager extends UserManager -{ - - private $index_key = 'email'; // identifing user field (username, email, etc ) - - protected $user; - - public function __construct() - { - parent::__construct(); - } - - - /** register user - * - * register into database; - * send OTP for account confirmation - * - * @param (void) : user properties passed via REQUEST->POST - * - */ - public function register_user() - { - $req = Registry::get('REQUEST'); - $register = Access_model::registerUser($req->POST); - - if ($register['success']) { - - //create OTP; - $otp = $this->create_OPT($register['id']); - - // send for account confirmation - - - } else { - print_r($register); - } - - } - - - public function login_user() - { - - } - - - /** forgot password - * - * send an otp - * (then verify) - * - */ - public function forgot_password() - { - - } - - - /** create OTP - * - * create a random OTP - * keep it into User's database Table - * - * @param $id (int): user id - * - */ - public function create_OTP($id) - { - $otp = rand(100000,999999); - Access_model::set_OTP($id, $otp); - - return true; - } - - - /** Verify Account - * - * check if posted OTP matched the one sent to the user - * - * @param $identity (array): pair of [index_key => identity_value] - * example: [ 'email' => 'geo@roptron.gr' ] - * - */ - public function verify_otp($identity, $otp) - { - - } - - -}
\ No newline at end of file |
