Feature/Auth: implement user authentication #3
@@ -8,7 +8,7 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
ConnectionStrings__DefaultConnection: Host=agologum-db;Port=5432;Database=agologum;Username=agologum;Password=${POSTGRES_PASSWORD}
|
ConnectionStrings__DefaultConnection: Host=agologum-db;Port=5432;Database=agologum;Username=agologum;Password=${POSTGRES_PASSWORD}
|
||||||
Jwt__Key: ${JWT_SECRET}
|
Jwt__Key: ${JWT_SECRET} # must export the secret as a variable in the ci script
|
||||||
ports:
|
ports:
|
||||||
- "5000:5000"
|
- "5000:5000"
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
public class RegisterDto {
|
public class RegisterDto {
|
||||||
|
|
||||||
public string Username { get; set; } = "";
|
public string Name { get; set; } = "";
|
||||||
public string Email { get; set; } = "";
|
public string Email { get; set; } = "";
|
||||||
public string Password { get; set; } = "";
|
public string Password { get; set; } = "";
|
||||||
|
|
||||||
@@ -9,7 +9,7 @@ public class RegisterDto {
|
|||||||
|
|
||||||
public class LoginDto {
|
public class LoginDto {
|
||||||
|
|
||||||
public string Username { get; set; } = "";
|
public string Name { get; set; } = "";
|
||||||
public string Password { get; set; } = "";
|
public string Password { get; set; } = "";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user