Skip to content

Commit

Permalink
change timer from Integer to Decimal
Browse files Browse the repository at this point in the history
  • Loading branch information
amdomanska committed Aug 1, 2024
1 parent 65ab30d commit 1a77402
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion portality/static/js/honeypot.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
doaj.honeypot = {}

doaj.honeypot.init = function () {
console.log("init")
console.log("init");
doaj.honeypot.startTime = performance.now();
$("#submitBtn").on("click", (event) => doaj.honeypot.handleRegistration(event));
}
Expand Down
4 changes: 2 additions & 2 deletions portality/view/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from flask import Blueprint, request, url_for, flash, redirect, make_response
from flask import render_template, abort
from flask_login import login_user, logout_user, current_user, login_required
from wtforms import StringField, HiddenField, PasswordField, IntegerField, validators, Form
from wtforms import StringField, HiddenField, PasswordField, DecimalField, validators, Form

from portality import util
from portality import constants
Expand Down Expand Up @@ -318,7 +318,7 @@ class RegisterForm(RedirectForm):
roles = StringField('Roles')
# These are honeypot (bot-trap) fields
email = StringField('email')
hptimer = IntegerField('hptimer')
hptimer = DecimalField('hptimer')

def is_bot(self):
"""
Expand Down

0 comments on commit 1a77402

Please sign in to comment.