diff options
author | vantezzen <hello@vantezzen.io> | 2020-04-02 15:32:18 +0200 |
---|---|---|
committer | vantezzen <hello@vantezzen.io> | 2020-04-02 15:32:18 +0200 |
commit | ddd002094d5c80ca4065b7d181e7f5b9471556da (patch) | |
tree | 1c5d9d018878595b32b4ec6bd3734bef698237d5 /app/Controllers/Http/UserController.js | |
parent | Merge branch 'master' of https://github.com/getferdi/ferdi-server (diff) | |
download | ferdium-server-ddd002094d5c80ca4065b7d181e7f5b9471556da.tar.gz ferdium-server-ddd002094d5c80ca4065b7d181e7f5b9471556da.tar.zst ferdium-server-ddd002094d5c80ca4065b7d181e7f5b9471556da.zip |
Update dashboard design
Diffstat (limited to 'app/Controllers/Http/UserController.js')
-rw-r--r-- | app/Controllers/Http/UserController.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/Controllers/Http/UserController.js b/app/Controllers/Http/UserController.js index e580e49..e367d99 100644 --- a/app/Controllers/Http/UserController.js +++ b/app/Controllers/Http/UserController.js | |||
@@ -203,6 +203,7 @@ class UserController { | |||
203 | async import({ | 203 | async import({ |
204 | request, | 204 | request, |
205 | response, | 205 | response, |
206 | view, | ||
206 | }) { | 207 | }) { |
207 | if (Env.get('IS_REGISTRATION_ENABLED') == 'false') { // eslint-disable-line eqeqeq | 208 | if (Env.get('IS_REGISTRATION_ENABLED') == 'false') { // eslint-disable-line eqeqeq |
208 | return response.status(401).send({ | 209 | return response.status(401).send({ |
@@ -227,7 +228,10 @@ class UserController { | |||
227 | errorMessage += `${message.message}\n`; | 228 | errorMessage += `${message.message}\n`; |
228 | } | 229 | } |
229 | } | 230 | } |
230 | return response.status(401).send(errorMessage); | 231 | return view.render('others.message', { |
232 | heading: 'Error while importing', | ||
233 | text: errorMessage, | ||
234 | }); | ||
231 | } | 235 | } |
232 | 236 | ||
233 | const { | 237 | const { |