mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-10-31 13:41:09 -04:00 
			
		
		
		
	update: SMTP username & password not mandatory in mail configuraiton
This commit is contained in:
		| @ -33,31 +33,19 @@ | ||||
|     </div> | ||||
|  | ||||
|     <div class="grid grid-cols-1 gap-4 mb-4 md:grid-cols-2 md:mb-6"> | ||||
|       <sw-input-group | ||||
|         :label="$t('wizard.mail.username')" | ||||
|         :error="usernameError" | ||||
|         required | ||||
|       > | ||||
|       <sw-input-group :label="$t('wizard.mail.username')"> | ||||
|         <sw-input | ||||
|           :invalid="$v.mailConfigData.mail_username.$error" | ||||
|           v-model.trim="mailConfigData.mail_username" | ||||
|           type="text" | ||||
|           name="db_name" | ||||
|           @input="$v.mailConfigData.mail_username.$touch()" | ||||
|         /> | ||||
|       </sw-input-group> | ||||
|  | ||||
|       <sw-input-group | ||||
|         :label="$t('wizard.mail.password')" | ||||
|         :error="passwordError" | ||||
|         required | ||||
|       > | ||||
|       <sw-input-group :label="$t('wizard.mail.password')"> | ||||
|         <sw-input | ||||
|           :invalid="$v.mailConfigData.mail_password.$error" | ||||
|           v-model.trim="mailConfigData.mail_password" | ||||
|           :type="getInputType" | ||||
|           name="password" | ||||
|           @input="$v.mailConfigData.mail_password.$touch()" | ||||
|         > | ||||
|           <template v-slot:rightIcon> | ||||
|             <eye-off-icon | ||||
| @ -154,6 +142,10 @@ const { required, email, numeric } = require('vuelidate/lib/validators') | ||||
| import { EyeIcon, EyeOffIcon } from '@vue-hero-icons/outline' | ||||
|  | ||||
| export default { | ||||
|   components: { | ||||
|     EyeIcon, | ||||
|     EyeOffIcon, | ||||
|   }, | ||||
|   props: { | ||||
|     configData: { | ||||
|       type: Object, | ||||
| @ -171,10 +163,6 @@ export default { | ||||
|       default: Array, | ||||
|     }, | ||||
|   }, | ||||
|   components: { | ||||
|     EyeIcon, | ||||
|     EyeOffIcon, | ||||
|   }, | ||||
|   data() { | ||||
|     return { | ||||
|       isShowPassword: false, | ||||
| @ -203,12 +191,6 @@ export default { | ||||
|         required, | ||||
|         numeric, | ||||
|       }, | ||||
|       mail_username: { | ||||
|         required, | ||||
|       }, | ||||
|       mail_password: { | ||||
|         required, | ||||
|       }, | ||||
|       mail_encryption: { | ||||
|         required, | ||||
|       }, | ||||
| @ -239,24 +221,6 @@ export default { | ||||
|         return this.$tc('validation.required') | ||||
|       } | ||||
|     }, | ||||
|     usernameError() { | ||||
|       if (!this.$v.mailConfigData.mail_username.$error) { | ||||
|         return '' | ||||
|       } | ||||
|  | ||||
|       if (!this.$v.mailConfigData.mail_username.required) { | ||||
|         return this.$tc('validation.required') | ||||
|       } | ||||
|     }, | ||||
|     passwordError() { | ||||
|       if (!this.$v.mailConfigData.mail_password.$error) { | ||||
|         return '' | ||||
|       } | ||||
|  | ||||
|       if (!this.$v.mailConfigData.mail_password.required) { | ||||
|         return this.$tc('validation.required') | ||||
|       } | ||||
|     }, | ||||
|     portError() { | ||||
|       if (!this.$v.mailConfigData.mail_port.$error) { | ||||
|         return '' | ||||
|  | ||||
		Reference in New Issue
	
	Block a user