Use form validation on Enter instead of manually validating the parameters
@@ -43,12 +43,7 @@ class SignupController {
formKeyup(event) {
this.view__clearRegisterError();
- if (
- event.keyCode == 13 &&
- this.passwordAgain === this.password &&
- this.acceptToS &&
- this.email
- ) {
+ if (event.keyCode == 13 && this.$scope.registerForm.$valid) {
if (this.isPrivateIdUser) {
this.account__transfer({
email: this.email,
