auth conception fixed
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
1bf3dfa3b6
commit
5bcee0b19b
@ -1,28 +1,32 @@
|
||||
@startuml
|
||||
|
||||
class AuthController {
|
||||
+__construct (model : AuthModel)
|
||||
+ displayRegister() : HttpResponse
|
||||
+ displayBadFields(viewName : string, fails : array) : HttpResponse
|
||||
+ confirmRegister(request : array) : HttpResponse
|
||||
+ register(request : array,session : MutableSessionHandle) : HttpResponse
|
||||
+ displayLogin() : HttpResponse
|
||||
+ confirmLogin() : HttpResponse
|
||||
+ login(request : array , session : MutableSessionHandle) : HttpResponse
|
||||
}
|
||||
AuthController --> "- model" AuthModel
|
||||
|
||||
class AuthModel {
|
||||
+ register(username : string, password : string, confirmPassword : string, email : string): array
|
||||
+ getAccount(email : string):array
|
||||
+__construct(gateway : AccountGateway)
|
||||
+ register(username : string, password : string, confirmPassword : string, email : string, failures : array): Account
|
||||
+ generateToken() : string
|
||||
+ login(email : string, password : string)
|
||||
}
|
||||
AuthModel --> "- gateway" AuthGateway
|
||||
AuthModel --> "- gateway" AccountGateway
|
||||
|
||||
class AuthGateway {
|
||||
class AccountGateway {
|
||||
-con : Connection
|
||||
+__construct(con : Connection)
|
||||
+ insertAccount(name : string, email : string, hash : string, token : string) : int
|
||||
+ getRowsFromMail(email : string): array
|
||||
+ getHash(email : string) : array
|
||||
+ exists(email : string) : bool
|
||||
+ getAccountFromMail(email : string ): Account
|
||||
+ getAccountFromToken(email : string ): Account
|
||||
|
||||
+ mailExists(email : string) : bool
|
||||
+ insertAccount(username : string, hash : string, email : string)
|
||||
+ getUserHash(email : string):string
|
||||
+ getAccount (email : string): array
|
||||
}
|
||||
|
||||
@enduml
|
Loading…
Reference in new issue