Subversion Repositories SmartDukaan

Rev

Rev 20858 | Rev 20861 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 20858 Rev 20860
Line 67... Line 67...
67
				$userId = $this->request->query('user_id');
67
				$userId = $this->request->query('user_id');
68
				if(isset($userId) && !empty($userId)) {
68
				if(isset($userId) && !empty($userId)) {
69
					$this->loadModel('User');
69
					$this->loadModel('User');
70
					$dbuser = $this->User->findById($userId);
70
					$dbuser = $this->User->findById($userId);
71
					if($dbuser['User']['activated']==0) {
71
					if($dbuser['User']['activated']==0) {
72
						return $this->redirect('http://www.profitmandi.com');	
72
						return $this->redirect('/users/retry');	
73
					}
73
					}
74
					$this->Auth->login($dbuser['User']);
74
					$this->Auth->login($dbuser['User']);
75
				}else
75
				}else
76
					return;
76
					return;
77
			}
77
			}