mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-22 12:21:13 +00:00
Fix captcha cache control bug (#2326)
Co-authored-by: SleeplessOne1917 <insomnia-void@protonmail.com>
This commit is contained in:
parent
909e3e0fa8
commit
59308bd7ae
1 changed files with 4 additions and 0 deletions
|
@ -71,9 +71,13 @@ export class Signup extends Component<any, State> {
|
|||
|
||||
async fetchCaptcha() {
|
||||
this.setState({ captchaRes: LOADING_REQUEST });
|
||||
HttpService.client.setHeaders({
|
||||
"Cache-Control": "private, no-cache",
|
||||
});
|
||||
this.setState({
|
||||
captchaRes: await HttpService.client.getCaptcha(),
|
||||
});
|
||||
HttpService.client.setHeaders({});
|
||||
|
||||
this.setState(s => {
|
||||
if (s.captchaRes.state === "success") {
|
||||
|
|
Loading…
Reference in a new issue