Fix typos (#899)

This commit is contained in:
Martin Chang 2021-06-22 15:08:06 +08:00 committed by GitHub
parent cd46b4a488
commit 6a882841f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 7 deletions

8
.gitignore vendored
View File

@ -31,9 +31,9 @@
*.out
*.app
build
cmake-build-debug
.idea
build/
cmake-build-debug/
.idea/
lib/inc/drogon/version.h
html/
latex/
@ -46,4 +46,4 @@ latex/
CMakeSettings.json
install
trace.json
.cache
.cache/

View File

@ -384,7 +384,7 @@ if (pg_FOUND OR MySQL_FOUND OR SQLite3_FOUND)
if (MySQL_FOUND)
option(USE_MYSQL "Enable Mysql" ON)
else (MySQL_FOUND)
option(USE_MYSQL "DisableMysql" OFF)
option(USE_MYSQL "Disable Mysql" OFF)
endif (MySQL_FOUND)
if (SQLite3_FOUND)

View File

@ -32,7 +32,7 @@ int main()
},
{Get});
// You can aslo specsify that the parameter is in the query section of the
// You can aslo specify that the parameter is in the query section of the
// URL!
app().registerHandler(
"/hello?user={user-name}",

View File

@ -39,7 +39,7 @@ int main()
std::string passwd = req->getParameter("passwd");
// NOTE: Do not, ever, use MD5 for password hash. We only use it
// because Drogon is not a cryptography library, so deosn't come
// because Drogon is not a cryptography library, so doesn't come
// with a better hash. Use Argon2 or BCrypt in a real product.
// username: user, pasword: password123
if (user == "user" && utils::getMd5("jadsjhdsajkh" + passwd) ==