Skip to content

Commit

Permalink
[release] v0.17.7
Browse files Browse the repository at this point in the history
  • Loading branch information
azukaar committed Jan 18, 2025
1 parent 1abf4a0 commit ef643b4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## Version 0.17.7
- Fix error code on login screen

## Version 0.17.6
- Can now chose between plain or formatted logs
- Added "force update" button in service mode
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cosmos-server",
"version": "0.17.6",
"version": "0.17.7",
"description": "",
"main": "test-server.js",
"bugs": {
Expand Down
2 changes: 0 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@
<h3 align="center">Thanks to the sponsors:</h3></br>
<p align="center"><a href="https://github.com/soldier1"><img src="https://avatars.githubusercontent.com/soldier1" style="border-radius:48px" width="48" height="48" alt="null" title="null" /></a>
<a href="https://github.com/Fortcraft"><img src="https://avatars.githubusercontent.com/Fortcraft" style="border-radius:48px" width="48" height="48" alt="null" title="null" /></a>
<a href="https://github.com/lilkidsuave"><img src="https://avatars.githubusercontent.com/lilkidsuave" style="border-radius:48px" width="48" height="48" alt="null" title="null" /></a>
<a href="https://github.com/phobes"><img src="https://avatars.githubusercontent.com/phobes" style="border-radius:48px" width="48" height="48" alt="Phobes" title="Phobes" /></a>
<a href="https://github.com/AstroMando"><img src="https://avatars.githubusercontent.com/AstroMando" style="border-radius:48px" width="48" height="48" alt="null" title="null" /></a>
<a href="https://github.com/riczescaran"><img src="https://avatars.githubusercontent.com/riczescaran" style="border-radius:48px" width="48" height="48" alt="Ricardo Escaran" title="Ricardo Escaran" /></a>
<a href="https://github.com/AKAHackoon"><img src="https://avatars.githubusercontent.com/AKAHackoon" style="border-radius:48px" width="48" height="48" alt="null" title="null" /></a>
<a href="https://github.com/bgro82"><img src="https://avatars.githubusercontent.com/bgro82" style="border-radius:48px" width="48" height="48" alt="null" title="null" /></a>
</p><!-- /sponsors -->

---
Expand Down
4 changes: 2 additions & 2 deletions src/user/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ func UserLogin(w http.ResponseWriter, req *http.Request) {
return
} else if user.Password == "" {
utils.Error("UserLogin: User not registered", nil)
utils.HTTPError(w, "User not registered", http.StatusUnauthorized, "UL002")
utils.HTTPError(w, "User not registered", http.StatusInternalServerError, "UL002")
return
} else {
err2 := bcrypt.CompareHashAndPassword([]byte(user.Password), []byte(password))
if err2 != nil {
utils.Error("UserLogin: Encryption error", err2)
utils.HTTPError(w, "User Logging Error", http.StatusUnauthorized, "UL001")
utils.HTTPError(w, "User Logging Error", http.StatusInternalServerError, "UL001")
return
}

Expand Down

0 comments on commit ef643b4

Please sign in to comment.