Skip to content

Commit

Permalink
mine fork, to build as prod without errors
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperErnD committed Jun 20, 2024
1 parent c53a9e3 commit e0080d9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN apk add --no-cache git build-base sqlite-dev libsodium-dev && \

WORKDIR /build/v

RUN make && /build/v/v install SuperErnD.cn && /build/v/v install elitru.jwt
RUN make && /build/v/v install SuperErnD.cn && /build/v/v install SuperErnD.jwt

RUN rm -rf doc examples/ tutorials/ vc/ ./vlib/v/tests/ \
./vlib/v/slow_tests/ ./vlib/v/embed_file/tests/ \
Expand Down
4 changes: 2 additions & 2 deletions api/src/account.v
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module main
import veb
import veb.auth
import db.tables
import elitru.jwt
import superernd.jwt
import net.http
import json

Expand Down Expand Up @@ -66,7 +66,7 @@ pub fn (mut app App) login(mut ctx Context) veb.Result {
user := app.find_user_by_name(name) or {
return ctx.request_error('Bad credentials')
}

if !auth.compare_password_with_hash(password, user.salt, user.password_hash) {
return ctx.request_error('Bad credentials')
}
Expand Down
2 changes: 1 addition & 1 deletion api/src/utils.v
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module main

import db.tables
import elitru.jwt
import superernd.jwt

pub struct IpApiResponse {
pub:
Expand Down

0 comments on commit e0080d9

Please sign in to comment.