mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-26 22:31:20 +00:00
Spam
This commit is contained in:
parent
74af5ef871
commit
aff41afa19
3 changed files with 7 additions and 4 deletions
|
@ -73,6 +73,7 @@ and goto http://localhost:8536
|
||||||
#### Running
|
#### Running
|
||||||
```
|
```
|
||||||
git clone https://github.com/dessalines/lemmy
|
git clone https://github.com/dessalines/lemmy
|
||||||
|
export DATABASE_URL=postgres://rrr:rrr@localhost/rrr
|
||||||
cd lemmy
|
cd lemmy
|
||||||
./install.sh
|
./install.sh
|
||||||
# For live coding, where both the front and back end, automagically reload on any save, do:
|
# For live coding, where both the front and back end, automagically reload on any save, do:
|
||||||
|
|
|
@ -129,7 +129,7 @@ export class Login extends Component<any, State> {
|
||||||
</div>
|
</div>
|
||||||
<input type="hidden" value={this.state.registerForm.spam_timer} />
|
<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="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="form-group row">
|
||||||
<div class="col-sm-10">
|
<div class="col-sm-10">
|
||||||
<button type="submit" class="btn btn-secondary">{this.state.registerLoading ?
|
<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;
|
let elapsed = endTimer - i.state.registerForm.spam_timer;
|
||||||
|
|
||||||
i.state.registerForm.spam_timer = elapsed;
|
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);
|
WebSocketService.Instance.register(i.state.registerForm);
|
||||||
} else {
|
} 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"; */}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -101,6 +101,6 @@ blockquote {
|
||||||
max-width: 50px;
|
max-width: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.no-s-how {
|
.no-s-hows {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue