Added Manager check
This commit is contained in:
parent
9c6f772c39
commit
a3762c6e14
|
@ -1,22 +1,25 @@
|
|||
@startuml Asura Tournament System
|
||||
title Login
|
||||
Actor Admin #palegreen
|
||||
participant Website
|
||||
database Server #brown
|
||||
hide footbox
|
||||
|
||||
Admin->Website: login(username, passwd)
|
||||
Admin->Website: login(username, passwd)
|
||||
activate Admin
|
||||
activate Website
|
||||
Website->Server: Login Request
|
||||
Website->Server: Login Request
|
||||
activate Server
|
||||
Server-->Website: {status: success | failure}
|
||||
Server-->Website: {status: success | failure}
|
||||
deactivate Server
|
||||
alt status = success
|
||||
Website-->Admin: "Login Successful"
|
||||
Website-->Admin: "Login Successful"
|
||||
opt Is Manager
|
||||
Website->Admin: redirect(managerPage)
|
||||
end
|
||||
Website->Admin: redirect(adminPage)
|
||||
' Website-->Admin: Login
|
||||
end
|
||||
deactivate Website
|
||||
deactivate Admin
|
||||
|
||||
@enduml
|
Loading…
Reference in New Issue