-
+
+
+
+
+
+
+ By registering, you agree to the
+ {
+ argumentClick(evt, 'privacy');
+ }}
+ target="_blank">
+ privacy policy
+
+ and
+ {
+ argumentClick(evt, 'tos');
+ }}
+ target="_blank">
+ terms of service
+
+ .
+
-
-
-
- By registering, you agree to the
- {
- argumentClick(evt, 'privacy');
- }}
- target="_blank">
- privacy policy
-
- and
- {
- argumentClick(evt, 'tos');
- }}
- target="_blank">
- terms of service
-
- .
-
-
-
-
- Already have an account? Log in
-
-
-
+
+
+ Already have an account? Log in
+
+
+
+
setModalState(false)}
+ />
+ >
);
};
diff --git a/ui/src/services/common.ts b/ui/src/services/common.ts
index 18e46490..0f4eac3f 100644
--- a/ui/src/services/common.ts
+++ b/ui/src/services/common.ts
@@ -96,6 +96,11 @@ export const register = (params: Type.RegisterReqParams) => {
return request.post('/answer/api/v1/user/register/email', params);
};
+export const getRegisterCaptcha = () => {
+ const apiUrl = '/answer/api/v1/user/register/captcha';
+ return request.get(apiUrl);
+};
+
export const logout = () => {
return request.get('/answer/api/v1/user/logout');
};