• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

bpstein / promodel / 137 / 1
86%
master: 86%

Build:
DEFAULT BRANCH: master
Ran 04 Jan 2017 10:25AM UTC
Files 28
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 Jan 2017 09:40AM UTC coverage: 81.2% (+0.02%) from 81.176%
2.3.0

push

travis-ci

ralinc
Fix password confirmation bug during user sign up

The issue: users are allowed to sign up without confirming their
passwords.

The bug: the password_confirmation field was omitted from devise strong
parameters list.

When configuring devise strong parameters if you pass a block to the
`permit` method then you completely override the parameter list. In case
you simply want to add a new field then pass it as `keys` argument. This
way you do not change the default devise behavior but extend it.

In the User model you do not need to explicitly call
`validates_confirmation_of :password` as devise already does that for
you in the `validatable` module. But only if `password_required?` is true.
And that is true if the password_confirmation is present. It was not
working for your case because the password_confirmation was missing.

I also added a spec for the User model.

203 of 250 relevant lines covered (81.2%)

3.43 hits per line

Source Files on job 137.1 (2.3.0)
  • Tree
  • List 0
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 137
  • Travis Job 137.1
  • b4e1fdc6 on github
  • Prev Job for 2.3.0 on master (#136.1)
  • Next Job for 2.3.0 on master (#138.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc