Subversion Repositories SmartDukaan

Rev

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

Rev 13532 Rev 17202
Line 121... Line 121...
121
					if(isset($referrer)){
121
					if(isset($referrer)){
122
						$this->Cookie->delete('referrer');
122
						$this->Cookie->delete('referrer');
123
					}
123
					}
124
					//If an activation field is supplied send out an email
124
					//If an activation field is supplied send out an email
125
					if (!empty($activation_field)) {
125
					if (!empty($activation_field)) {
126
						$this->__sendActivationEmail($this->data[$model]);
126
						// $this->__sendActivationEmail($this->data[$model]);
127
						if (!$this->controller->request->is('ajax')) {
127
						if (!$this->controller->request->is('ajax')) {
128
							$this->controller->redirect(array('action' => 'activate'));
128
							$this->controller->redirect(array('action' => 'activate'));
129
						} else {
129
						} else {
130
							return true;
130
							return true;
131
						}
131
						}
132
					} else {
132
					} else {
133
						$this->__sendWelcomeEmail($this->data[$model]);
133
						// $this->__sendWelcomeEmail($this->data[$model]);
134
					}
134
					}
135
					if (!$this->controller->request->is('ajax')) {
135
					if (!$this->controller->request->is('ajax')) {
136
						$this->controller->redirect($this->Auth->loginAction);
136
						$this->controller->redirect($this->Auth->loginAction);
137
					} else {
137
					} else {
138
						return true;
138
						return true;