6161 $t("settings.enabled")
6262 }}</template >
6363 </cv-toggle >
64- <cv-text-input
65- :label =" $t('settings.admin_firstname')"
66- placeholder =" John"
67- v-model.trim =" adminFirstname"
68- class =" mg-bottom"
69- :invalid-message =" $t(error.adminFirstname)"
70- :disabled =" loading.getConfiguration || loading.configureModule"
71- >
72- </cv-text-input >
73-
74- <cv-text-input
75- :label =" $t('settings.admin_lastname')"
76- placeholder =" Doe"
77- v-model.trim =" adminLastname"
78- class =" mg-bottom"
79- :invalid-message =" $t(error.adminLastname)"
80- :disabled =" loading.getConfiguration || loading.configureModule"
81- >
82- </cv-text-input >
83-
84- <cv-text-input
85- :label =" $t('settings.admin_username')"
86- placeholder =" admin"
87- v-model.trim =" adminUsername"
88- class =" mg-bottom"
89- :invalid-message =" $t(error.adminUsername)"
90- :disabled =" loading.getConfiguration || loading.configureModule"
91- >
92- </cv-text-input >
93-
94- <cv-text-input
95- :label =" $t('settings.admin_email')"
96- placeholder =" admin@example.org"
97- v-model =" adminEmail"
98- class =" mg-bottom"
99- :invalid-message =" $t(error.adminEmail)"
100- :disabled =" loading.getConfiguration || loading.configureModule"
101- >
102- </cv-text-input >
103-
104- <cv-text-input
105- :label =" $t('settings.admin_password')"
106- placeholder =" ********"
107- v-model =" adminPassword"
108- class =" mg-bottom"
109- type =" password"
110- :invalid-message =" $t(error.adminPassword)"
111- :disabled =" loading.getConfiguration || loading.configureModule"
112- >
113- </cv-text-input >
11464 <!-- advanced options -->
11565 <cv-accordion ref =" accordion" class =" maxwidth mg-bottom" >
11666 <cv-accordion-item :open =" toggleAccordion[0]" >
@@ -182,11 +132,6 @@ export default {
182132 host: " " ,
183133 isLetsEncryptEnabled: false ,
184134 isHttpToHttpsEnabled: true ,
185- adminFirstname: " " ,
186- adminLastname: " " ,
187- adminUsername: " " ,
188- adminEmail: " " ,
189- adminPassword: " " ,
190135 db_password: " " ,
191136 loading: {
192137 getConfiguration: false ,
@@ -198,11 +143,6 @@ export default {
198143 host: " " ,
199144 lets_encrypt: " " ,
200145 http2https: " " ,
201- adminFirstname: " " ,
202- adminLastname: " " ,
203- adminUsername: " " ,
204- adminEmail: " " ,
205- adminPassword: " " ,
206146 },
207147 };
208148 },
@@ -270,11 +210,6 @@ export default {
270210 this .host = config .host ;
271211 this .isLetsEncryptEnabled = config .lets_encrypt ;
272212 this .isHttpToHttpsEnabled = config .http2https ;
273- this .adminFirstname = config .admin_firstname ;
274- this .adminLastname = config .admin_lastname ;
275- this .adminUsername = config .admin_username ;
276- this .adminEmail = config .admin_email ;
277- this .adminPassword = config .admin_password ;
278213 this .db_password = config .db_password ;
279214
280215 this .loading .getConfiguration = false ;
@@ -292,30 +227,6 @@ export default {
292227 }
293228 isValidationOk = false ;
294229 }
295- if (! this .adminFirstname ) {
296- this .error .adminFirstname = " common.required" ;
297- isValidationOk = false ;
298- }
299- if (! this .adminLastname ) {
300- this .error .adminLastname = " common.required" ;
301- isValidationOk = false ;
302- }
303- if (! this .adminUsername ) {
304- this .error .adminUsername = " common.required" ;
305- isValidationOk = false ;
306- }
307- if (! this .adminEmail ) {
308- this .error .adminEmail = " common.required" ;
309- isValidationOk = false ;
310- }
311- if (! this .adminPassword ) {
312- this .error .adminPassword = " common.required" ;
313- isValidationOk = false ;
314- }
315- if (this .adminPassword .length < 6 ) {
316- this .error .adminPassword = " Password must be more than 6 characters" ;
317- isValidationOk = false ;
318- }
319230 return isValidationOk;
320231 },
321232 configureModuleValidationFailed (validationErrors ) {
@@ -369,11 +280,6 @@ export default {
369280 host: this .host ,
370281 lets_encrypt: this .isLetsEncryptEnabled ,
371282 http2https: this .isHttpToHttpsEnabled ,
372- admin_firstname: this .adminFirstname ,
373- admin_lastname: this .adminLastname ,
374- admin_username: this .adminUsername ,
375- admin_email: this .adminEmail ,
376- admin_password: this .adminPassword ,
377283 },
378284 extra: {
379285 title: this .$t (" settings.instance_configuration" , {
0 commit comments