This commit is contained in:
@@ -9,7 +9,7 @@ Need a sprint to get to a fully testable client with entry form, list and as muc
|
|||||||
|
|
||||||
-----------------------
|
-----------------------
|
||||||
|
|
||||||
|
///
|
||||||
TODO CLIENT STUFF
|
TODO CLIENT STUFF
|
||||||
|
|
||||||
- Consider moving client app to it's own folder structure, it's clumsy having it with the server and it contains thousands of files which slows shit down when not needed.
|
- Consider moving client app to it's own folder structure, it's clumsy having it with the server and it contains thousands of files which slows shit down when not needed.
|
||||||
|
|||||||
@@ -339,7 +339,7 @@ namespace AyaNova
|
|||||||
app.UseAuthentication();
|
app.UseAuthentication();
|
||||||
|
|
||||||
//Custom middleware to get user roles and put them into the request so
|
//Custom middleware to get user roles and put them into the request so
|
||||||
//they can be authorized in routes
|
//they can be authorized in routes.
|
||||||
app.Use(async (context, next) =>
|
app.Use(async (context, next) =>
|
||||||
{
|
{
|
||||||
if (!context.User.Identity.IsAuthenticated)
|
if (!context.User.Identity.IsAuthenticated)
|
||||||
|
|||||||
Reference in New Issue
Block a user