Explorar o código

email query param

sunguroku %!s(int64=5) %!d(string=hai) anos
pai
achega
9c58c4b02a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      dashboard/src/main/Login.tsx

+ 1 - 1
dashboard/src/main/Login.tsx

@@ -32,7 +32,7 @@ export default class Login extends Component<PropsType, StateType> {
   componentDidMount() {
     let urlParams = new URLSearchParams(window.location.search);
     let emailFromCLI = urlParams.get('email');
-    // emailFromCLI ? this.setState({email: emailFromCLI}) :
+    emailFromCLI ? this.setState({email: emailFromCLI}) :
     document.addEventListener("keydown", this.handleKeyDown);
   }