philipbrown / magniloquent

DEPRECATED, USE https://github.com/dwightwatson/validating
MIT License
70 stars 8 forks source link

Validation auto hash double hashes database seeders #3

Closed etiennemarais closed 10 years ago

etiennemarais commented 10 years ago

Hi,

I have picked up that the private function autoHash() will double hash password attributes when added via the database seeder operation (php artisan db:seed)

Is this something you could look at? The workaround for the time being is removing the hash maker from the seed class like this:

Instead of this: $user->password = Hash::make('pass'), just do $user->password = 'pass'

philipbrown commented 10 years ago

Thank you, yeah I'll have a look into it.

philipbrown commented 10 years ago

Why are you using Hash::make() if the password is already getting hashed?