alefesouza / laravel-vue-boilerplate

:elephant: A Laravel 8 SPA boilerplate with a users CRUD using Vue.js 2.6, GraphQL, Bootstrap 4, TypeScript, Sass, and Pug.
MIT License
540 stars 146 forks source link

User Password added is PlainText #18

Closed loreberti89 closed 3 years ago

loreberti89 commented 4 years ago

Hello, I don't know if it is a Bug or I'am missing something in configuration but, I noticed that When I add new user from Administrator panel, the user password in User table on DB is saved on plaintext.

I have added

public function setPasswordAttribute($value)
        {
            if($value != ""){
                $this->attributes['password'] = bcrypt($value);
            }
        }

on User Model, but I guess I missed something. I Doubt that there is a bug so much big.

alefesouza commented 3 years ago

Thanks.