]> Untitled Git - lemmy.git/blobdiff - ui/src/components/setup.tsx
routes.api: fix get_captcha endpoint (#1135)
[lemmy.git] / ui / src / components / setup.tsx
index 196a2e56d2ea568359a8b59dfe7008fcc33b0f65..6360ec5a36022e4fcb7d21aabc748c1b479dbc50 100644 (file)
@@ -7,7 +7,7 @@ import {
   LoginResponse,
   UserOperation,
   WebSocketJsonResponse,
-} from '../interfaces';
+} from 'lemmy-js-client';
 import { WebSocketService, UserService } from '../services';
 import { wsJsonToRes, toast } from '../utils';
 import { SiteForm } from './site-form';
@@ -29,6 +29,9 @@ export class Setup extends Component<any, State> {
       password_verify: undefined,
       admin: true,
       show_nsfw: true,
+      // The first admin signup doesn't need a captcha
+      captcha_uuid: '',
+      captcha_answer: '',
     },
     doneRegisteringUser: false,
     userLoading: false,