Explorar o código

user idGen modify

xy %!s(int64=7) %!d(string=hai) anos
pai
achega
0867433704
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/components/login/Login.js

+ 1 - 1
src/components/login/Login.js

@@ -127,7 +127,7 @@ class Login extends Component {
                             <Button type='primary' onClick={() => {
                                 request('http://123.206.193.98:3000/graphql', SEARCH_USER, {username: this.state.register_username}).then(data => {
                                     if (data.user_by_props.length === 0) {
-                                        let id = idGen('userID');
+                                        let id = idGen('user');
                                         let _this = this;
                                         create_user({
                                             variables: {