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
if ($userSaved) {
return $this->_afterRegister($userSaved);
} else {
$this->set(compact('user'));
$this->Flash->error(__d('cake_d_c/users', 'The user could not be saved'));
return;
}
I kind of want to be able to customize the Flash error message not with translations but with an if block, I might want to change the flash based on certain errors given back from the entity. Would this be worth it to do via an event or something of that nature?
The text was updated successfully, but these errors were encountered:
@steinkel@rochamarcelo we could configure flash messages in users config. However do we want that specific customization? If so we can implement it in latest version, otherwise we can close the issue
In register trait the following code exists:
I kind of want to be able to customize the Flash error message not with translations but with an if block, I might want to change the flash based on certain errors given back from the entity. Would this be worth it to do via an event or something of that nature?
The text was updated successfully, but these errors were encountered: