Skip to content

User can register with a "false" email #149

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
nicolas-besnard opened this issue Feb 15, 2015 · 1 comment
Closed

User can register with a "false" email #149

nicolas-besnard opened this issue Feb 15, 2015 · 1 comment

Comments

@nicolas-besnard
Copy link
Contributor

In Rails Console :

User.create!(email: "foo", uid: "foo", provider: 'email', password: 'plopplop')

In console :

   (0.2ms)  BEGIN
   (0.3ms)  SELECT COUNT(*) FROM `users`  WHERE `users`.`provider` = 'email' AND `users`.`email` = 'foo'
  User Load (0.3ms)  SELECT  `users`.* FROM `users`  WHERE `users`.`confirmation_token` = 'ce2c2c7346e427922d7a2c07802f330cacef724da4985793b0f7b48beabe683c'  ORDER BY `users`.`id` ASC LIMIT 1

  SQL (0.3ms)  INSERT INTO `users` (`confirmation_sent_at`, `confirmation_token`, `confirmed_at`, `created_at`, `email`, `encrypted_password`, `provider`, `tokens`, `uid`, `updated_at`) VALUES ('2015-02-15 20:29:36', 'ce2c2c7346e427922d7a2c07802f330cacef724da4985793b0f7b48beabe683c', '2015-02-15 20:29:36', '2015-02-15 20:29:36', 'foo', '$2a$10$Yl0twhjI5Vc05cLbBqECRuOhxXIHbzaC76poXbh6/newVkb0SScCa', 'email', '{}', 'foo', '2015-02-15 20:29:36')
@lynndylanhurley
Copy link
Owner

Closing as the fix has been merged. Thx @nicolas-besnard 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants