Skip to content

Commit 53b2342

Browse files
committed
Final build
1 parent b8b3992 commit 53b2342

35 files changed

+56
-52
lines changed

src/dashboard.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1730,8 +1730,10 @@ def API_RequireAuthentication():
17301730
@app.post(f'{APP_PREFIX}/api/authenticate')
17311731
def API_AuthenticateLogin():
17321732
data = request.get_json()
1733+
if not DashboardConfig.GetConfig("Server", "auth_req")[1]:
1734+
return ResponseObject(True, DashboardConfig.GetConfig("Other", "welcome_session")[1])
1735+
17331736
if DashboardConfig.APIAccessed:
1734-
17351737
authToken = hashlib.sha256(f"{request.headers.get('wg-dashboard-apikey')}{datetime.now()}".encode()).hexdigest()
17361738
session['username'] = authToken
17371739
resp = ResponseObject(True, DashboardConfig.GetConfig("Other", "welcome_session")[1])

src/static/app/dist/assets/configuration-CTO8cI7V.js renamed to src/static/app/dist/assets/configuration-CPRjFgy3.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/static/app/dist/assets/configurationBackupRestore-s0LsYT3f.js renamed to src/static/app/dist/assets/configurationBackupRestore-rOXQBFxS.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)