Performance: has_secure_password
MEDIUM IMPACT
This affects server-side password hashing and authentication speed, indirectly impacting page load time when users log in or register.
class User < ApplicationRecord
has_secure_password
endclass User < ApplicationRecord # Storing plain text passwords attr_accessor :password end
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Storing plain text passwords | 0 | 0 | 0 | [X] Bad |
| Using has_secure_password with bcrypt | 0 | 0 | 0 | [OK] Good |