Improve login flow a smidge by showing an error message and re-enabling the sign in button on failure

This commit is contained in:
2026-11-05 09:56:36 -06:00
parent 27b0d92ccf
commit f5e8055bf5
6 changed files with 54 additions and 3 deletions

View File

@@ -106,6 +106,11 @@ module W3DHubLauncher
if response.okay?
hash = JSON.parse(response.data)
if hash["error"]
result.error = hash["error"]
return result
end
user_details_result = fetch_user_details(Integer(hash["userid"]))
user_details_hash = user_details_result.okay? ? JSON.parse(user_details_result.data) : {}
@@ -134,6 +139,11 @@ module W3DHubLauncher
if response.okay?
hash = JSON.parse(response.data)
if hash["error"]
result.error = hash["error"]
return result
end
user_details_result = fetch_user_details(Integer(hash["userid"]))
user_details_hash = user_details_result.okay? ? JSON.parse(user_details_result.data) : {}