Kick user when deleting an application

This commit is contained in:
eikendev 2020-08-06 17:56:58 +02:00
parent b89deeac3d
commit 3bdadd6029
No known key found for this signature in database
GPG key ID: A1BDB1B28C8EF694
4 changed files with 36 additions and 18 deletions

View file

@ -24,8 +24,8 @@ type Database interface {
// The Dispatcher interface for relaying notifications.
type Dispatcher interface {
RegisterApplication(name, user string) (string, error)
DeregisterApplication(a *model.Application) error
RegisterApplication(id uint, name, token, user string) (string, error)
DeregisterApplication(a *model.Application, u *model.User) error
}
// The CredentialsManager interface for updating credentials.