From c4fe4f1bf1017a8443a10d5c612846e8b79ba23d Mon Sep 17 00:00:00 2001 From: kitten Date: Tue, 23 Jun 2026 06:50:34 +0200 Subject: [PATCH] fix: add missing function --- services/auth.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/services/auth.py b/services/auth.py index 79dde3b..1064edc 100644 --- a/services/auth.py +++ b/services/auth.py @@ -1,9 +1,14 @@ import requests from config import settings +from argon2 import PasswordHasher API_URL = "https://account.spfn.net/api/v2" CLIENT_ID = "splatnet" CLIENT_SECRET = settings.account_client_secret +ph = PasswordHasher() + +def hash_password(password: str): + return ph.hash(password) def get_token(username, password): url = f"{API_URL}/oauth2/generate_token"