Skip to content

Commit

Permalink
Show extra instructions when invitation email to user can not be sent -
Browse files Browse the repository at this point in the history
  • Loading branch information
freescout-help-desk committed Feb 15, 2023
1 parent c05722b commit 35725c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/Http/Controllers/UsersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public function createSave(Request $request)
$user->sendInvite(true);
} catch (\Exception $e) {
// Admin is allowed to see exceptions
\Session::flash('flash_error_floating', $e->getMessage());
\Session::flash('flash_error_floating', $e->getMessage().''.__('Check mail settings in "Manage » Settings » Mail Settings"'));
}
}

Expand Down Expand Up @@ -390,8 +390,8 @@ public function ajax(Request $request)

$response['status'] = 'success';
} catch (\Exception $e) {
// Admin is allowed to see exceptions
$response['msg'] = $e->getMessage();
// Admin is allowed to see exceptions.
$response['msg'] = $e->getMessage().''.__('Check mail settings in "Manage » Settings » Mail Settings"');
}
}
break;
Expand Down
2 changes: 1 addition & 1 deletion public/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3049,7 +3049,7 @@ function userProfileInit()
showFloatingAlert('success', Lang.get("messages.invite_sent"));
}
} else {
showAjaxError(response);
showAjaxError(response, true);
}
button.button('reset');
},
Expand Down

0 comments on commit 35725c2

Please sign in to comment.