File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,16 @@ public function loginMe()
104104 */
105105 public function forgotPassword ()
106106 {
107- $ this ->load ->view ('forgotPassword ' );
107+ $ isLoggedIn = $ this ->session ->userdata ('isLoggedIn ' );
108+
109+ if (!isset ($ isLoggedIn ) || $ isLoggedIn != TRUE )
110+ {
111+ $ this ->load ->view ('forgotPassword ' );
112+ }
113+ else
114+ {
115+ redirect ('/dashboard ' );
116+ }
108117 }
109118
110119 /**
Original file line number Diff line number Diff line change @@ -117,6 +117,11 @@ function lastLogin($loginInfo)
117117 $ this ->db ->trans_complete ();
118118 }
119119
120+ /**
121+ * This function is used to get last login info by user id
122+ * @param number $userId : This is user id
123+ * @return number $result : This is query result
124+ */
120125 function lastLoginInfo ($ userId )
121126 {
122127 $ this ->db ->select ('BaseTbl.createdDtm ' );
You can’t perform that action at this time.
0 commit comments