DTO with Dateparse OpenAPI/Java and Login in JSF with LoginDTOs, how to split front- and backend for safety?

Ingeborg Conrad Oscar 26 Reputation points
2022-05-01T19:11:29.43+00:00

Here is my BookCustomerDTO(Data Transfer Object)
Is it also able to change the Date-Scheme, so in the Java JSF-Frontend there is a LocalDateTime and not a OffsetDateTime?
198045-docs.png

And here a part from the controller197990-controller.png

My frontend looks like this where the problem occurs when i try to safe the date198026-jsf.png
And with this method i redirect to the datatable where the data is displayed. Is it ok if i iterate among all loginDTOs and check the username and password and if they match i create a session and redirect to the datapage.
198027-jsf2.png

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,239 questions
{count} votes