elara6331 / Authentik StopForumSpam integration

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 1716158530
This expression policy checks users against the StopForumSpam API during enrollment and rejects them if they've been reported within a specified threshold
1 # The amount of days within which to check if the user was reported
2 LAST_SEEN_THRESHOLD = 180
3
4 # The contact name to use in rejection messages
5 CONTACT = "Admin at admin@example.com"
6
7 from urllib.parse import urlencode
8 from datetime import datetime
9 import requests

Hazel / gist:d06c3f34a357452b97a79921081a1ac8

1 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 1715113784
1 This is soooo coool <333
Новее Позже