summaryrefslogtreecommitdiffstats
path: root/ui/src/components/login.tsx
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2019-04-26 09:11:04 -0700
committerDessalines <tyhou13@gmx.com>2019-04-26 09:11:04 -0700
commit366e4955820ff50d715432b15aef849d8c43f7e6 (patch)
tree0ab076743c5078c6ed40688dcdf73b0c928cec50 /ui/src/components/login.tsx
parent4d890596e5d6bcad3b909f6ee5c7f9349968844d (diff)
Spam
Diffstat (limited to 'ui/src/components/login.tsx')
-rw-r--r--ui/src/components/login.tsx8
1 files changed, 5 insertions, 3 deletions
diff --git a/ui/src/components/login.tsx b/ui/src/components/login.tsx
index eb974c79..b64c7a7c 100644
--- a/ui/src/components/login.tsx
+++ b/ui/src/components/login.tsx
@@ -129,7 +129,7 @@ export class Login extends Component<any, State> {
</div>
<input type="hidden" value={this.state.registerForm.spam_timer} />
<input type="text" class="d-none" value={this.state.spamNada} onInput={linkEvent(this, this.handleSpamNada)} />
- <input type="text" class="no-s-how" value={this.state.spamNada} onInput={linkEvent(this, this.handleSpamNada)} />
+ <input type="text" class="no-s-hows" value={this.state.spamNada} onInput={linkEvent(this, this.handleSpamNada)} />
<div class="form-group row">
<div class="col-sm-10">
<button type="submit" class="btn btn-secondary">{this.state.registerLoading ?
@@ -168,10 +168,12 @@ export class Login extends Component<any, State> {
let elapsed = endTimer - i.state.registerForm.spam_timer;
i.state.registerForm.spam_timer = elapsed;
- if (elapsed > 1142 && i.state.spamNada == undefined) {
+ if (elapsed > 1423 && i.state.spamNada == undefined) {
WebSocketService.Instance.register(i.state.registerForm);
} else {
- window.location.href = "https://github.com/dessalines/lemmy";
+ i.state.spamNada = "nt";
+ i.setState(i.state);
+ {/* window.location.href = "https://github.com/dessalines/lemmy"; */}
}
}