feat(User Id): UserId forced to be on lower case
This commit is contained in:
@@ -100,24 +100,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="field is-horizontal">
|
||||
<div class="field-label is-normal">
|
||||
<label class="label">email</label>
|
||||
</div>
|
||||
<div class="field-body">
|
||||
<div class="field">
|
||||
<p class="control">
|
||||
<input
|
||||
required
|
||||
class="input"
|
||||
type="email"
|
||||
@keyup.enter="register"
|
||||
v-model.trim="email"
|
||||
>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>-->
|
||||
<div class="field is-horizontal">
|
||||
<div class="field-label is-normal">
|
||||
<label class="label" v-t="'user.password'"></label>
|
||||
@@ -250,7 +232,6 @@ export default class User extends Vue {
|
||||
@Action
|
||||
public remove!: any
|
||||
public activeTab: string = 'login'
|
||||
public userId: string = ''
|
||||
public email: string = ''
|
||||
public password: string = ''
|
||||
public confirmPassword: string = ''
|
||||
@@ -260,6 +241,7 @@ export default class User extends Vue {
|
||||
public show: boolean = false
|
||||
public replicate: boolean = false
|
||||
public confirmed: boolean = false
|
||||
private localeUserId: string = ''
|
||||
|
||||
public mounted(): void {
|
||||
if (this.premail) {
|
||||
@@ -349,6 +331,14 @@ export default class User extends Vue {
|
||||
public get slugEmail(): string {
|
||||
return slug(this.email)
|
||||
}
|
||||
|
||||
public set userId(newUserId: string) {
|
||||
this.localeUserId = (newUserId || '').toLowerCase()
|
||||
}
|
||||
|
||||
public get userId() {
|
||||
return this.localeUserId
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user