Please enable JavaScript.
Coggle requires JavaScript to display documents.
Login - Coggle Diagram
Login
Middlewares
req quantity checker
ip handler
type of id checker
With pass
Controllers
Login with password
Check login quantity withing 5mins with ip
check incoming data
if login quantity is more than 3 within 5mins ban user for 5mins
Services
Login Service
Functionalities
Check user existance
check user password
check google recaptcha
create csurf token
Log activity LOGIN
Copy the user on Redis
Without pass
Controllers
Login without Password
Check incoming data
Check login quatity within 5 mins with ip
if login quantity is more than 3 within 5mins ban user for 5mins
Services
Login service
Functionalities
Check user existance
check google recaptcha
Log activity LOGIN REQUEST
Create a login request on Redis
create a request id for this action
add The request to Confirmation class (update according parameter)
Validation Pipes
with Pass
recaptcha
mustString if existed
email
mustString
not null
password
mustString
not null
max 30 character
min 8 character
without Pass
email
not null
mustString
recaptcha
mustString if existed
Dto
with Pass
email Or id
password
ip (added in middleware)
type of id(email or NCID) (added in middleware)
recaptcha (needed on the second request)
without Pass
email Or id
Ip (added in middleware)
recaptcha (needed on the second request)
type of id(email or NCID) (added in middleware)
Forced Login
Decorator