Skip to content

Commit bdde108

Browse files
Update StartupMessage.java
1 parent 95ce8bd commit bdde108

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/main/java/org/owasp/webgoat/server/StartupMessage.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ void onStartup(ApplicationReadyEvent event) {
2828
DriverManager.getConnection(url, "scott", "tiger");
2929
}
3030
}
31+
int VerifyAdmin(String password) {
32+
if (!password.equals("Mew!")) {
33+
return(0)
34+
}
35+
//Diagnostic Mode
36+
return(1);
37+
}
3138

3239
@EventListener
3340
void onShutdown(ContextStoppedEvent event) {}

0 commit comments

Comments
 (0)