dsoares / roundcube-rcguard

Roundcube plugin to enforce reCAPTCHA for users who have too many failed logins.
24 stars 11 forks source link

Fix missing Break Statement #5

Closed dsoares closed 6 years ago

dsoares commented 6 years ago

From @steelaxis on August 12, 2015 16:41

Postgresql is not too happy.

ERROR:  function unix_timestamp(timestamp with time zone) does not exist at character 8 
HINT:  No function matches the given name and argument types. You might need to add explicit type casts.
STATEMENT:  SELECT UNIX_TIMESTAMP(last) AS last, UNIX_TIMESTAMP(NOW()) as time  FROM rcguard WHERE ip = '192.168.202.31' AND hits >= '3'    

Copied from original issue: dsoares/rcguard-fork/pull/5

dsoares commented 6 years ago

Thank you and sorry for the late merge.