Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Transactional
- @Security.Authenticated(Secured.class)
- public class ProfileController extends BaseController {
- (...)
- @Transactional
- public static Result deleteProfile() {
- Account current = Component.currentAccount();
- ...
- // DELETING AND ANONYMIZING STUFF //
- ...
- current.delete();
- flash("success", Messages.get("profile.delete.success"));
- return AccountController.logout();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement