()
| 44 | } |
| 45 | |
| 46 | submit() { |
| 47 | if (!this.user.isValidEmail()) { |
| 48 | alert("Enter a valid email address."); |
| 49 | return; |
| 50 | } |
| 51 | |
| 52 | this.isAuthenticating = true; |
| 53 | if (this.isLoggingIn) { |
| 54 | this.login(); |
| 55 | } else { |
| 56 | this.signUp(); |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | login() { |
| 61 | if (getConnectionType() === connectionType.none) { |
nothing calls this directly
no test coverage detected