blob: 616ebf6e1a40cfea369247531001fff307bbb80f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
<?php
namespace app\controllers;
use UserManager;
use Registry;
# use app\models\admin\User_model;
/** ClassUserManager
*
* extends (anom's) UserManager
*
* this way it specializes the UserManagement
* according to this app's special rules
*
*/
class Classroom_user extends UserManager
{
private $user_identifier = 'email'; // identifing user field (username, email, etc )
protected $user;
public function __construct()
{
// $this->user = new UserManager();
}
public function register_user()
{
$req = Registry::get('REQUEST');
print_r($req->POST); die();
}
public function login_user()
{
}
/** forgot password
*
* send an otp
* (then verify)
*
*/
public function forgot_password()
{
}
/** Verify Account
*
* check if posted OTP matched the one sent to the user
*
*/
public function verify_otp()
{
}
}
|