mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
auto user login.
This commit is contained in:
parent
391417d1ea
commit
9d514206ca
@ -38,6 +38,7 @@ For n.eko room management software visit https://github.com/m1k1o/neko-rooms.
|
|||||||
- Added `m1k1o/neko:xfce` tag, as an non video related showcase (by @mbattista).
|
- Added `m1k1o/neko:xfce` tag, as an non video related showcase (by @mbattista).
|
||||||
- Added ARM-based images, for Raspberry Pi support (by @mbattista).
|
- Added ARM-based images, for Raspberry Pi support (by @mbattista).
|
||||||
- Added simple language picker.
|
- Added simple language picker.
|
||||||
|
- Added `?usr=<display-name>` that will prefill username. This allows creating auto-join links.
|
||||||
|
|
||||||
### Bugs
|
### Bugs
|
||||||
- Fixed minor gst pipeline bug.
|
- Fixed minor gst pipeline bug.
|
||||||
|
@ -157,14 +157,23 @@
|
|||||||
private password: string = ''
|
private password: string = ''
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
|
// auto-password fill
|
||||||
let password = this.$accessor.password
|
let password = this.$accessor.password
|
||||||
if (this.autoPassword !== null) {
|
if (this.autoPassword !== null) {
|
||||||
this.removeUrlParam('pwd')
|
this.removeUrlParam('pwd')
|
||||||
password = this.autoPassword
|
password = this.autoPassword
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.$accessor.displayname !== '' && password !== '') {
|
// auto-user fill
|
||||||
this.$accessor.login({ displayname: this.$accessor.displayname, password })
|
let displayname = this.$accessor.displayname
|
||||||
|
const usr = new URL(location.href).searchParams.get('usr')
|
||||||
|
if (usr) {
|
||||||
|
this.removeUrlParam('usr')
|
||||||
|
displayname = this.$accessor.displayname || usr
|
||||||
|
}
|
||||||
|
|
||||||
|
if (displayname !== '' && password !== '') {
|
||||||
|
this.$accessor.login({ displayname, password })
|
||||||
this.autoPassword = null
|
this.autoPassword = null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user