File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -41,10 +41,18 @@ namespace Odb::Lib::App
41
41
{
42
42
// 500 - Internal Server Error
43
43
auto validUsername = std::getenv (USERNAME_ENV_NAME);
44
- if (validUsername == nullptr ) return crow::response (500 , " Failed retrieving credentials" );
44
+ if (validUsername == nullptr ) // return crow::response(500, "Failed retrieving credentials");
45
+ {
46
+ // default username if none supplied in environment
47
+ validUsername = " odb" ;
48
+ }
45
49
46
50
auto validPassword = std::getenv (PASSWORD_ENV_NAME);
47
- if (validPassword == nullptr ) return crow::response (500 , " Failed retrieving credentials" );
51
+ if (validPassword == nullptr ) // return crow::response(500, "Failed retrieving credentials");
52
+ {
53
+ // default password if none supplied in environment
54
+ validPassword = " plusplus" ;
55
+ }
48
56
49
57
// 403 - Forbidden
50
58
if (username != validUsername ||
You can’t perform that action at this time.
0 commit comments