added editorconfig and formated code
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Has been cancelled
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Has been cancelled
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Has been cancelled
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Has been cancelled
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Has been cancelled
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Has been cancelled
This commit is contained in:
1 parent
77a483a38a
commit
e5abe4bb02
23 files changed
+22332
-21478
No files matched your search
@@ -7,7 +7,8 @@
|
||||
#include <sstream>
|
||||
|
||||
// funcion for hashing password using sha256
|
||||
std::string hashPassword(const std::string &password) {
|
||||
std::string hashPassword(const std::string& password)
|
||||
{
|
||||
unsigned char hash[SHA256_DIGEST_LENGTH];
|
||||
|
||||
// calculating hash
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
#include <security/cors.hpp>
|
||||
#include <colors.h>
|
||||
|
||||
void set_cors_headers(const httplib::Request &request, httplib::Response &response) {
|
||||
void set_cors_headers(const httplib::Request& request, httplib::Response& response)
|
||||
{
|
||||
std::cout << GREEN << request.path << " " << std::endl;
|
||||
response.set_header("Access-Control-Allow-Origin", "*");
|
||||
response.set_header("Access-Control-Allow-Methods", "GET,POST,OPTIONS");
|
||||
|
||||
Reference in new issue
Block a user