mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 23:06:08 -06:00
Merge pull request #733 from openclassify/dia
#2411 [emadencilik] [bonus] Fields to fill in to earn bonuses
This commit is contained in:
commit
f27c3418c4
@ -28,6 +28,7 @@ return [
|
|||||||
'ajax_address_error' => 'No address or not authorized to view.',
|
'ajax_address_error' => 'No address or not authorized to view.',
|
||||||
'empty_password_sms_message' => 'Due to security issues, we changed your password! Your new password is:',
|
'empty_password_sms_message' => 'Due to security issues, we changed your password! Your new password is:',
|
||||||
'required_all' => "All Field is Required!",
|
'required_all' => "All Field is Required!",
|
||||||
|
'can_not_remove_filled_fields' => "You can not remove filled fields!",
|
||||||
|
|
||||||
// Forgot Password
|
// Forgot Password
|
||||||
'email_phone_not_found' => 'The E-mail, Phone Number is not correct!',
|
'email_phone_not_found' => 'The E-mail, Phone Number is not correct!',
|
||||||
|
|||||||
@ -33,6 +33,14 @@ class ProfileFormHandler
|
|||||||
|
|
||||||
$user = $userModel->newQuery()->find(\auth()->id());
|
$user = $userModel->newQuery()->find(\auth()->id());
|
||||||
|
|
||||||
|
// Prevent removing already filled fields
|
||||||
|
foreach ($parameters as $field => $value) {
|
||||||
|
if ($user->$field && !$value) {
|
||||||
|
$messages->error('visiosoft.module.profile::message.can_not_changed_filled_fields');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$oldCustomerInfo = $user->toArray();
|
$oldCustomerInfo = $user->toArray();
|
||||||
|
|
||||||
$changes = $this->change($user, $parameters);
|
$changes = $this->change($user, $parameters);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user