Crates.io | argentum_user_account_business |
lib.rs | argentum_user_account_business |
version | 0.2.6 |
source | src |
created_at | 2024-07-30 21:55:11.052563 |
updated_at | 2024-08-30 15:53:30.351023 |
description | Business layer of user account component |
homepage | https://github.com/argentum-toolkit/argentum |
repository | https://github.com/argentum-toolkit/argentum |
max_upload_size | |
id | 1320381 |
size | 66,120 |
= Argentum ToolKit User. An Business layer.
== User workflow Overview
@startuml actor User as user
user -> reg: registration reg --> user: mail ||| user -> reg: confirmation \n(not implemented yet) reg --> user: mail ||| user -> login: login login --> user: token ||| user -> action: do something action --> user: result
== Authentication
@startuml actor user participant Middleware as m database "Token storage" as ts
user -> m m -> ts: token ts --> m: userId m -> SomeController: userId + request
== Restore Password
@startuml autonumber 1.1
actor User as u
participant system as s participant Notificator as n
group Request Reset Token u -> s: Request reset\npassword token s -> s: Generate token\nInvalidate previous token s -> n: Send token n --> u: Send token end
autonumber 2.1
group Reset Password u -> s: Send new password s -> s: Change password\nInvalidate token s -> n: Password was changed n --> u: Password was changed end