Use once_cell to keep the configuration

In order to keep the configuration globally available use
`once_cell`. Also check for a valid email address in the part which is
receiving the data from the api.
This commit is contained in:
finga 2023-02-06 09:56:33 +01:00
parent 05e63acca5
commit 7ad6f610d1
6 changed files with 61 additions and 11 deletions

View file

@ -8,3 +8,6 @@ pass = "remindrs"
# [server]
# address = "::1"
# port = 8080
# [email]
# from = "remindrs@localhost"