/** * Activate the customers account using the given token * @param $token * @return bool|string */ public function activateAccount($token) { if ($token == '') { return 'No valid auth token received.'; } $custMdl = new CustomerModel(); $result = $custMdl->tokenActivate($token); if ($result == 0 || $result == false) { return 'Failed to activate the account using the given token.<br/>The token may have expired.'; } return true; }