add bearer tokens for functions

This commit is contained in:
smanylov
2026-06-02 11:39:54 +07:00
parent 743db57bb3
commit 7d0fb265d4
7 changed files with 42 additions and 19 deletions
+8 -3
View File
@@ -256,9 +256,12 @@ export default function RegisterForm() {
<ConfirmMailModalWindow userId={state?.userId} email={formState?.previousState?.email} onClose={() => { setShowMailConfirmWindow(false) }} />
</div>
)}
<form action={(e) => {
formAction(e);
}}>
<form
action={(e) => {
formAction(e);
}}
autoComplete="off"
>
<div className={`${styles['form-switcher']}`}>
<button
className={`${styles['form-switcher-button']} ${accountType === 'b2c' ? styles['active'] : ''}`}
@@ -432,6 +435,7 @@ export default function RegisterForm() {
e.target.value = e.target.value.toLocaleLowerCase();
onChangeHandler(e)
}}
autoComplete="off"
/>
{formState?.error?.email && (
<p className="text-sm text-red-500">
@@ -486,6 +490,7 @@ export default function RegisterForm() {
placeholder={t('password-placeholder')}
defaultValue={formState?.previousState?.password ? formState?.previousState?.password : ''}
onChange={onChangeHandler}
autoComplete="off"
/>
<button
onClick={() => {