mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-18 05:51:26 +02:00
Started import work
This commit is contained in:
@@ -36,6 +36,15 @@ extend('validPassword', {
|
||||
},
|
||||
message: $gettext('Invalid password')
|
||||
})
|
||||
extend('portNumber', {
|
||||
validate: async (value) => {
|
||||
if (value < 0 || value > 65535) {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
},
|
||||
message: $gettext('Specify a valid port number')
|
||||
})
|
||||
|
||||
// Register components globally
|
||||
Vue.component('ValidationObserver', ValidationObserver)
|
||||
|
||||
Reference in New Issue
Block a user