Migrate from simplepam to python-pam library

This commit is contained in:
Daniel Markstedt
2025-11-07 01:28:57 +01:00
parent 0020b9e107
commit e6dd4e4d04
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -12,7 +12,7 @@ from os import path
import bjoern
from piscsi.return_codes import ReturnCodes
from simplepam import authenticate
from pam import authenticate
from flask_babel import Babel, Locale, refresh, _
from werkzeug.utils import secure_filename
@@ -357,7 +357,7 @@ def upload_page():
@APP.route("/login", methods=["POST"])
def login():
"""
Uses simplepam to authenticate against Linux users
Uses PAM to authenticate with system users
"""
username = request.form["username"]
password = request.form["password"]