Skip to content

Commit

Permalink
Merge pull request #399 from joseph-d/patch-1
Browse files Browse the repository at this point in the history
Add whitespace trimming to login
  • Loading branch information
Ben Thomson authored Sep 4, 2019
2 parents f7be982 + 967282e commit bc2e5d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/Account.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@ public function onSignin()
if (!array_key_exists('login', $data)) {
$data['login'] = post('username', post('email'));
}

$data['login'] = trim($data['login']);

$validation = Validator::make($data, $rules);
if ($validation->fails()) {
Expand Down

0 comments on commit bc2e5d1

Please sign in to comment.