| @@ 262-269 (lines=8) @@ | ||
| 259 | $user = null; |
|
| 260 | ||
| 261 | // check if a given nick or email exists |
|
| 262 | if ($login_method === 'nick') { |
|
| 263 | // get user_id and passwordhash with the nick |
|
| 264 | $user = Doctrine_Query::create() |
|
| 265 | ->select('u.user_id, u.passwordhash, u.salt') |
|
| 266 | ->from('CsUsers u') |
|
| 267 | ->where('u.nick = ?') |
|
| 268 | ->fetchOne([$value], Doctrine::HYDRATE_ARRAY); |
|
| 269 | } |
|
| 270 | ||
| 271 | // check if a given email exists |
|
| 272 | if ($login_method === 'email') { |
|
| @@ 272-279 (lines=8) @@ | ||
| 269 | } |
|
| 270 | ||
| 271 | // check if a given email exists |
|
| 272 | if ($login_method === 'email') { |
|
| 273 | // get user_id and passwordhash with the email |
|
| 274 | $user = Doctrine_Query::create() |
|
| 275 | ->select('u.user_id, u.passwordhash, u.salt') |
|
| 276 | ->from('CsUsers u') |
|
| 277 | ->where('u.email = ?') |
|
| 278 | ->fetchOne([$value], Doctrine::HYDRATE_ARRAY); |
|
| 279 | } |
|
| 280 | ||
| 281 | $this->moduleconfig = $this->config->readModuleConfig('account'); |
|
| 282 | ||