forked from WebGoat/WebGoat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed WebWolf issues with sending e-mails
- Loading branch information
Showing
11 changed files
with
48 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
## Release WebGoat | ||
|
||
|
||
### Version numbers | ||
|
||
For WebGoat we use milestone releases first before we release the official version, we use `v8.0.0.M3` while tagging | ||
and 8.0.0.M3 in the `pom.xml`. When we create the final release we remove the milestone release and use | ||
`v8.0.0` and 8.0.0 in the `pom.xml` | ||
|
||
At the moment we use Gitflow, for a release you create a new release branch and take the following steps: | ||
|
||
``` | ||
git checkout develop | ||
git flow release start <version> | ||
mvn versions:set <<version> | ||
git commit -am "New release, updaing pom.xml" | ||
git flow release publish | ||
``` | ||
|
||
Now we can make a new release, be sure you committed all your changes. | ||
|
||
``` | ||
git tag v8.0.0.M3 | ||
git push origin v8.0.0.M3 | ||
``` | ||
|
||
Now Travis takes over and will create the release in Github and on Docker Hub. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ public class MailAssignment extends AssignmentEndpoint { | |
private final String webWolfURL; | ||
private RestTemplate restTemplate; | ||
|
||
public MailAssignment(RestTemplate restTemplate, @Value("${webwolf.url}") String webWolfURL) { | ||
public MailAssignment(RestTemplate restTemplate, @Value("${webwolf.url.mail}") String webWolfURL) { | ||
this.restTemplate = restTemplate; | ||
this.webWolfURL = webWolfURL; | ||
} | ||
|
@@ -36,10 +36,10 @@ public AttackResult sendEmail(@RequestParam String email) { | |
.recipient(username) | ||
.title("Test messages from WebWolf") | ||
.time(LocalDateTime.now()) | ||
.contents("This is a test message from WebWolf, your unique code is" + StringUtils.reverse(username)) | ||
.contents("This is a test message from WebWolf, your unique code is: " + StringUtils.reverse(username)) | ||
.sender("[email protected]") | ||
.build(); | ||
restTemplate.postForEntity(webWolfURL + "/WebWolf/mail", mailEvent, Object.class); | ||
restTemplate.postForEntity(webWolfURL, mailEvent, Object.class); | ||
return informationMessage().feedback("webwolf.email_send").feedbackArgs(email).build(); | ||
} else { | ||
return informationMessage().feedback("webwolf.email_mismatch").feedbackArgs(username).build(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 0 additions & 14 deletions
14
webwolf/src/main/java/org/owasp/webwolf/user/WebGoatUserToCookieRepository.java
This file was deleted.
Oops, something went wrong.