From a3762c6e14dad851e056e4cd6fedce46e744de43 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Tue, 15 Mar 2022 15:29:09 +0100 Subject: [PATCH] Added Manager check --- documentation/sequenceDiagramLogin.puml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/documentation/sequenceDiagramLogin.puml b/documentation/sequenceDiagramLogin.puml index 7c4a44d..ae3e004 100644 --- a/documentation/sequenceDiagramLogin.puml +++ b/documentation/sequenceDiagramLogin.puml @@ -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 \ No newline at end of file