You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
805 B
28 lines
805 B
@startuml
|
|
|
|
class AuthController {
|
|
+ displayRegister() : HttpResponse
|
|
+ displayBadFields(viewName : string, fails : array) : HttpResponse
|
|
+ confirmRegister(request : array) : HttpResponse
|
|
+ displayLogin() : HttpResponse
|
|
+ confirmLogin() : HttpResponse
|
|
}
|
|
AuthController --> "- model" AuthModel
|
|
|
|
class AuthModel {
|
|
+ register(username : string, password : string, confirmPassword : string, email : string): array
|
|
+ getAccount(email : string):array
|
|
+ login(email : string, password : string)
|
|
}
|
|
AuthModel --> "- gateway" AuthGateway
|
|
|
|
class AuthGateway {
|
|
-con : Connection
|
|
|
|
+ mailExists(email : string) : bool
|
|
+ insertAccount(username : string, hash : string, email : string)
|
|
+ getUserHash(email : string):string
|
|
+ getAccount (email : string): array
|
|
}
|
|
|
|
@enduml |