Skip to content

Commit

Permalink
Merge pull request #21 from rallisf1/main
Browse files Browse the repository at this point in the history
make auto renewal upon expiry optional
  • Loading branch information
ovx authored Mar 13, 2024
2 parents 49e5577 + e4c5953 commit 4003dbf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Altcha.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
export let challengejson: string | undefined = undefined;
export let debug: boolean = false;
export let expire: number | undefined = undefined;
export let autorenew: boolean = true;
export let hidefooter: boolean = false;
export let hidelogo: boolean = false;
export let name: string = 'altcha';
Expand Down Expand Up @@ -168,7 +169,7 @@
}
function expireChallenge() {
if (challengeurl && state === State.VERIFIED) {
if (challengeurl && autorenew && state === State.VERIFIED) {
// re-fetch challenge and verify again
verify();
Expand Down
1 change: 1 addition & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export interface Configure {
challenge?: Challenge;
debug?: boolean;
expire?: number;
autorenew?: boolean;
hidefooter?: boolean;
hidelogo?: boolean;
maxnumber?: number;
Expand Down

0 comments on commit 4003dbf

Please sign in to comment.