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

bpstein / promodel / 137
86%

Build:
DEFAULT BRANCH: master
Ran 04 Jan 2017 10:25AM UTC
Jobs 1
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

pending completion
137

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

Jobs
ID Job ID Ran Files Coverage
1 137.1 (2.3.0) 04 Jan 2017 10:25AM UTC 0
81.2
Travis Job 137.1
Source Files on build 137
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #137
  • b4e1fdc6 on github
  • Prev Build on master (#136)
  • Next Build on master (#138)
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