You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the controller will load password as DataEdit->password field which is empty. When sending the update to the database it will also send the empty password in the update.
Instead it should check if the password field is empty, in that case drop the password part from the update database query.
Removing the ->rule('required') part will prompt a database error as it still doesnt drop the password from the sql query:
SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'password' cannot be null (SQL: update `admins` set `password` = , `updated_at` = 2016-12-06 13:50:37 where `id` = 5)`
I dont know yet how to modify the controller in that regard. so i need help with a few things:
how do I influence what gets sent as sql query from the controller?
how would i make the password field read the existing value
The text was updated successfully, but these errors were encountered:
the controller will load password as DataEdit->password field which is empty. When sending the update to the database it will also send the empty password in the update.
Instead it should check if the password field is empty, in that case drop the password part from the update database query.
Removing the ->rule('required') part will prompt a database error as it still doesnt drop the password from the sql query:
I dont know yet how to modify the controller in that regard. so i need help with a few things:
The text was updated successfully, but these errors were encountered: