File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -218,17 +218,17 @@ func PersistEnv() error {
218218 if storeData [constants .EnvKeySmtpHost ] == "" || storeData [constants .EnvKeySmtpUsername ] == "" || storeData [constants .EnvKeySmtpPassword ] == "" || storeData [constants .EnvKeySenderEmail ] == "" && storeData [constants .EnvKeySmtpPort ] == "" {
219219 storeData [constants .EnvKeyIsEmailServiceEnabled ] = false
220220
221- if ! storeData [constants .EnvKeyDisableEmailVerification ].(bool ) {
221+ if val , ok := storeData [constants .EnvKeyDisableEmailVerification ]; ok && val != nil && ! val .(bool ) {
222222 storeData [constants .EnvKeyDisableEmailVerification ] = true
223223 hasChanged = true
224224 }
225225
226- if ! storeData [constants .EnvKeyDisableMagicLinkLogin ].(bool ) {
226+ if val , ok := storeData [constants .EnvKeyDisableMagicLinkLogin ]; ok && val != nil && ! val .(bool ) {
227227 storeData [constants .EnvKeyDisableMagicLinkLogin ] = true
228228 hasChanged = true
229229 }
230230
231- if ! storeData [constants .EnvKeyDisableMailOTPLogin ].(bool ) {
231+ if val , ok := storeData [constants .EnvKeyDisableMailOTPLogin ]; ok && val != nil && ! val .(bool ) {
232232 storeData [constants .EnvKeyDisableMailOTPLogin ] = true
233233 hasChanged = true
234234 }
You can’t perform that action at this time.
0 commit comments