| @@ -53,9 +53,9 @@ | ||
| 53 | 53 | if ( ! empty( $errors ) ) { |
| 54 | 54 | return $this->error( 'signup_errors', $errors, 'signup', '400' ); |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | - $query = 'status, message, user{ id, name, first_name, last_name, display_name, email, profile_photo, joined, is_verified, api_key, plan, plan_expire_at, my_cloud{ limit, usages, last_pushed }, show_notice }'; | |
| 57 | + $query = 'status, message, user{ id, name, first_name, last_name, display_name, email, profile_photo, joined, is_verified, api_key, plan, plan_expire_at, my_cloud{ limit, usages, last_pushed } }'; | |
| 58 | 58 | |
| 59 | 59 | $response = $this->http()->mutation( |
| 60 | 60 | 'createUser', |
| 61 | 61 | $query, |
| @@ -79,13 +79,8 @@ | ||
| 79 | 79 | |
| 80 | 80 | if ( ! empty( $response['user']['api_key'] ) ) { |
| 81 | 81 | $this->utils('options')->set( 'api_key', $response['user']['api_key'] ); |
| 82 | 82 | unset( $response['user']['api_key'] ); |
| 83 | - } | |
| 84 | - | |
| 85 | - if ( ! empty( $response['user'] ) && is_array( $response['user'] ) ) { | |
| 86 | - $response['user']['site_url'] = base64_encode( $_site_url ); | |
| 87 | - $response['user']['ip'] = $_ip; | |
| 88 | 83 | } |
| 89 | 84 | |
| 90 | 85 | $this->utils('options')->set( 'user', $response['user'] ); |
| 91 | 86 | |