Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NEW Add onBeforeRemoveLoginSession extension hook #34

Merged
merged 1 commit into from
Mar 29, 2021

Conversation

emteknetnz
Copy link
Member

@emteknetnz emteknetnz commented Mar 8, 2021

Issue: #20

Related: silverstripe/silverstripe-auditor#37

I've implemented this as a onBefore rather than an onAfter to ensure data is still available to record in the auditor log

@emteknetnz emteknetnz force-pushed the pulls/1/auditor branch 3 times, most recently from 079a423 to 05b45a1 Compare March 8, 2021 03:15
@emteknetnz emteknetnz marked this pull request as draft March 23, 2021 20:45
@emteknetnz emteknetnz force-pushed the pulls/1/auditor branch 2 times, most recently from f13cc34 to a1ac0a9 Compare March 23, 2021 23:21
@emteknetnz emteknetnz marked this pull request as ready for review March 23, 2021 23:21
Copy link
Contributor

@bergice bergice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs merge conflicts resolved, and remove the TODO, then merge.

class LoginSessionController extends LeftAndMain
{
private static $url_segment = 'loginsession';

// TODO: this is probably a legacy config that's not used anywhere so should be deleted
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, without it, this will show up in the sidebar.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah OK, it's because this extends LeftAndMain instead of Controller

I've updated the TODOs to change what this inherits from, and also move the folder

I'd do it on this PR, except I don't want to mix up features + refactoring on the same PR, and it may cause merge conflicts on other open PR's. I've created a new issue to track this #42

@emteknetnz
Copy link
Member Author

@bergice this is ready for review again

@bergice bergice merged commit 4901f43 into silverstripe:1 Mar 29, 2021
@emteknetnz emteknetnz deleted the pulls/1/auditor branch March 29, 2021 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants