mirror of
https://github.com/pi-hole/FTL.git
synced 2024-10-26 16:52:18 +02:00
Add simple /api/auth implementation. Currently, all passwords are accepted and a login session is valid for 5 minutes.
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -41,4 +41,10 @@ int api_dns_somelist(struct mg_connection *conn,
|
||||
// Version method
|
||||
int api_version(struct mg_connection *conn);
|
||||
|
||||
// Auth method
|
||||
int api_auth(struct mg_connection *conn);
|
||||
|
||||
// Settings methods
|
||||
int api_settings_web(struct mg_connection *conn);
|
||||
|
||||
#endif // API_H
|
||||
|
||||
Reference in New Issue
Block a user