#//# -------------------------------------------------------------------------------------- #//# Created using Sequence Diagram for Mac #//# https://www.macsequencediagram.com #//# https://itunes.apple.com/gb/app/sequence-diagram/id1195426709?mt=12 #//# -------------------------------------------------------------------------------------- title "Locking and Unlocking Member Account" participant Member as member participant Frontend as front participant Backend_API as back participant ERP_DB as erpdb activate front activate back loop [ for until fail_cnt is 5 ] member->front: enter id/pass in login page front->back: find id/passwd of member back->erpdb: add fail_cnt +1\n if member id/pass mismatched back->erpdb: lock member record \n if fails until 5 times back->front: or response 507(mismatched) front->member: show message(mismatched) end back->front: response 509(failure-limit) if over 5 times front->member: show message(mismatched) deactivate back deactivate front deactivate member