TT#134715 SIPAuth - As PBXAdmin, I want to set the SIP-password during the creation

Change-Id: Ida32f895cf47a17aeafee1c83194123af71e918d
mr10.0
Hugo Zigha 4 years ago committed by Hans-Peter Herzog
parent 611d34e07c
commit a3691b4599

@ -130,7 +130,7 @@ export function createSeat (seat) {
Promise.resolve().then(() => {
return createSubscriber({
username: _.kebabCase(seat.name),
password: createId(),
password: seat.sipPassword ? seat.sipPassword : createId(),
display_name: seat.name,
webpassword: seat.webPassword.length > 0 ? seat.webPassword : null,
is_pbx_group: false,

@ -8,7 +8,7 @@
v-bind="$attrs"
generate
clearable
:label="$t('Password')"
:label="passwordLabel"
@input="inputPassword"
@generated="passwordGenerated"
@clear="passwordClear"
@ -28,7 +28,7 @@
ref="passwordRetype"
v-model="passwordRetype"
v-bind="$attrs"
:label="$t('Password Retype')"
:label="passwordConfirmLabel"
:error="$v.passwordRetype.$error"
:error-message="errorMessagePasswordRetype"
clearable
@ -70,6 +70,18 @@ export default {
passwordRetype: ''
}
}
},
passwordLabel: {
type: String,
default () {
return this.$t('Password')
}
},
passwordConfirmLabel: {
type: String,
default () {
return this.$t('Password Retype')
}
}
},
data () {

@ -51,6 +51,16 @@
</csc-input>
<csc-input-password-retype
v-model="data.password"
:password-label="$t('Web Password')"
:password-confirm-label="$t('Web Password confirm')"
:disable="loading"
hide-bottom-space
dense
/>
<csc-input-password-retype
v-model="data.sipPassword"
:password-label="$t('SIP Password')"
:password-confirm-label="$t('SIP Password confirm')"
:disable="loading"
dense
/>
@ -194,6 +204,22 @@ export default {
isInRange: function (value) {
return inRange(value, this.getMinAllowedExtension, this.getMaxAllowedExtension, between)
}
},
password: {
password: {
required
},
passwordRetype: {
required
}
},
sipPassword: {
password: {
required
},
passwordRetype: {
required
}
}
}
},
@ -271,6 +297,10 @@ export default {
password: '',
passwordRetype: ''
},
sipPassword: {
password: '',
passwordRetype: ''
},
aliasNumbers: [],
groups: [],
soundSet: null,
@ -285,6 +315,7 @@ export default {
name: this.data.name,
extension: this.data.extension,
webPassword: this.data.password.password,
sipPassword: this.data.sipPassword.password,
aliasNumbers: this.data.aliasNumbers,
groups: this.data.groups,
soundSet: this.data.soundSet,

@ -344,6 +344,8 @@
"Ringing at": "Ringing at",
"Ringing at {number}...": "Ringing at {number}...",
"Russian": "Russian",
"SIP Password": "SIP Password",
"SIP Password confirm": "SIP Password confirm",
"Sa": "Sa",
"Same time for selected days": "Same time for selected days",
"Saturday": "Saturday",
@ -442,6 +444,8 @@
"Voicemail": "Voicemail",
"Voicemails": "Voicemails",
"We": "We",
"Web Password": "Web Password",
"Web Password confirm": "Web Password confirm",
"Wednesday": "Wednesday",
"Weekly": "Weekly",
"When I dial {slot} ...": "When I dial {slot} ...",

Loading…
Cancel
Save