Output email in error in case of validation failure
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-08-25 15:01:45 +02:00
parent 83c757db6d
commit 71ae2df2d7
5 changed files with 14 additions and 4 deletions

View File

@ -0,0 +1,6 @@
use base64::{engine::general_purpose, Engine as _};
/// Encode a base64 string
pub fn base64_enc<T: AsRef<[u8]>>(b: T) -> String {
general_purpose::STANDARD_NO_PAD.encode(b)
}