mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 02:18:26 +00:00
Add support for more generic notification
This is a start to have different kinds of notifications. It is possible to be notified via e-mail, matrix or gotify. It also extends the current "periodic query" for due items by allowing notification over different channels. A "generic periodic query" variant is added as well.
This commit is contained in:
@ -49,9 +49,9 @@ object Totp {
|
||||
time.plus(generator.getTimeStep)
|
||||
)
|
||||
|
||||
def checkPassword(key: Key, given: OnetimePassword, time: Instant): Boolean = {
|
||||
def checkPassword(key: Key, givenPass: OnetimePassword, time: Instant): Boolean = {
|
||||
val pass = generate(key, time)
|
||||
pass == given
|
||||
pass == givenPass
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user