diff --git a/src/components/UserRegistration.vue b/src/components/UserRegistration.vue index 457421f3..bfc74e75 100644 --- a/src/components/UserRegistration.vue +++ b/src/components/UserRegistration.vue @@ -122,26 +122,28 @@ export default class UserRegistration extends Vue { } private validateUsername() { - this.usernameValidationInProgress = true; - this.$refs.userNameTextField.loading = true; - - try { - getUserDB(this.username).allDocs(); - } catch (e) { - alert('no userdb!'); - } - - doesUserExist(this.username).then((exists) => { - if (exists) { - log('name is taken :('); - this.$refs.userNameTextField.error = true; - } else { - log('name is available'); - this.$refs.userNameTextField.appendIcon = 'done'; - } - this.usernameValidationInProgress = false; - }); - this.$refs.userNameTextField.loading = false; + // the below does not work. Complaints of admin credentials. + + // this.usernameValidationInProgress = true; + // this.$refs.userNameTextField.loading = true; + + // try { + // getUserDB(this.username).allDocs(); + // } catch (e) { + // alert('no userdb!'); + // } + + // doesUserExist(this.username).then((exists) => { + // if (exists) { + // log('name is taken :('); + // this.$refs.userNameTextField.error = true; + // } else { + // log('name is available'); + // this.$refs.userNameTextField.appendIcon = 'done'; + // } + // this.usernameValidationInProgress = false; + // }); + // this.$refs.userNameTextField.loading = false; } private createUser() {