add validate email and generate uuid
This commit is contained in:
13
bin/main.cpp
13
bin/main.cpp
@@ -15,6 +15,8 @@
|
||||
#include "math/matrix.hpp"
|
||||
#include "math/vector.hpp"
|
||||
#include "utils/utils.hpp"
|
||||
#include "security/validate_email.hpp"
|
||||
#include "security/generate_uuid.hpp"
|
||||
|
||||
// for example
|
||||
int f(int a)
|
||||
@@ -187,4 +189,15 @@ int main(int argc, char *argv[])
|
||||
auto t = hack::utils::exec("pwd");
|
||||
hack::log::type_trace(t);
|
||||
}
|
||||
|
||||
{
|
||||
// ec: security::validate_email
|
||||
std::string email = "asdf@asdf.com";
|
||||
hack::log()(hack::security::validate_email(email));
|
||||
}
|
||||
|
||||
{
|
||||
// ec: security::generate_uuid
|
||||
hack::log()(hack::security::generate_uuid());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user