asura-tmdb/documentation/sequence_diagrams/sequenceDiagramLogin.puml
2022-04-27 11:27:06 +02:00

28 lines
588 B
Plaintext

@startuml Asura Tournament System
title Login
skinparam actorStyle awesome
Actor Admin #palegreen
participant Website
database Server #brown
hide footbox
Admin->Website: login(username, passwd)
activate Admin
activate Website
Website->Server: Login Request
activate Server
Server-->Website: {status: success | failure}
deactivate Server
alt status = success
Website-->Admin: "Login Successful"
opt if (userIsAdmin)
Website->Admin: redirect(frontPage)
else
Website->Admin: redirect(noSuchUserPage)
end
end
deactivate Website
deactivate Admin
@enduml