summaryrefslogtreecommitdiff
path: root/html/app/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'html/app/controllers')
-rw-r--r--html/app/controllers/Classroom_user.php69
1 files changed, 69 insertions, 0 deletions
diff --git a/html/app/controllers/Classroom_user.php b/html/app/controllers/Classroom_user.php
new file mode 100644
index 0000000..616ebf6
--- /dev/null
+++ b/html/app/controllers/Classroom_user.php
@@ -0,0 +1,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()
+ {
+
+ }
+
+
+} \ No newline at end of file