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

Re-deprecate Member::create_new_password #8577

Closed
3 tasks
ScopeyNZ opened this issue Nov 6, 2018 · 9 comments
Closed
3 tasks

Re-deprecate Member::create_new_password #8577

ScopeyNZ opened this issue Nov 6, 2018 · 9 comments

Comments

@ScopeyNZ
Copy link
Contributor

ScopeyNZ commented Nov 6, 2018

Affected Version

4.x

Description

A while ago there was a commit that deprecated the seemingly unused Member::create_new_password API: f16d7e1

That code deprecation isn't there now:
https://github.com/silverstripe/silverstripe-framework/blob/master/src/Security/Member.php#L852

I didn't track down where this was (probably accidentally) removed but it makes sense to restore the deprecation.

Acceptance criteria

  • Validate if create_new_password is meant to be deprecated.
  • If it is, restore deprecation annotation and update to throw deprecation warning

PRs

@NightJar
Copy link
Contributor

NightJar commented Nov 6, 2018

See #8563 which is related, in that this appears to be causing community confusion (i.e. using when it probably shouldn't be).

@GuySartorelli
Copy link
Member

This issue is really old - it wouldn't make sense to reintroduce that API at this point.

@GuySartorelli
Copy link
Member

Oops, reopened. I thought from reading the description that the method had been removed, but it was actually the deprecation notice which was removed.

@GuySartorelli GuySartorelli reopened this Jul 16, 2022
@NightJar
Copy link
Contributor

Silverstripe 5 is coming up. Is this on the plan?

@GuySartorelli
Copy link
Member

@NightJar It is in our backlog, but it's a pretty low priority.

@NightJar
Copy link
Contributor

NightJar commented Nov 1, 2022

If it's deprecated now it can be deleted in CMS 5 🥕 😂

@GuySartorelli
Copy link
Member

Yup, that's correct.

@emteknetnz emteknetnz self-assigned this Nov 1, 2022
@emteknetnz
Copy link
Member

It's deprecated in the 3 branch, but not the 4 branch, nor its commit history. Or the 4.2 branch which is the earliest minor branch on 4 that's still around. So not sure what happened there.

Regardless though, nothing calls this method in core so I'll re-deprecate it

@GuySartorelli
Copy link
Member

PR merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants