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

Locked attribute removed in 2.0.0-beta1 version? #2395

Closed
polantis opened this issue Jan 10, 2017 · 2 comments
Closed

Locked attribute removed in 2.0.0-beta1 version? #2395

polantis opened this issue Jan 10, 2017 · 2 comments

Comments

@polantis
Copy link

Hello,

Why is this attribut removed? I am using it when some one has made a valid subscription but has made some suspicious activities on my website. I need two fields: enable and locked

Do i have to create a new islocked function in my user class?

If i look at the user entity, it is not really usable..:

public function isAccountNonLocked()
{
return true;
}

Thank you,

Regards,

Guillaume

@polantis polantis changed the title Locked attribute remove in 2.0.0-beta1 version? Locked attribute removed in 2.0.0-beta1 version? Jan 10, 2017
@stof
Copy link
Member

stof commented Jan 10, 2017

if your project need it, you can add this field in your own child entity (and overwrite the Symfony interface method isAccountNonLocked()).

The property was removed of the bundle because the bundle itself was not providing any feature based on it, and was enforcing a specific implementation of isAccountNonLocked(), which was not flexible enough for some users, and which required an unused DB field for others. So we went the simplication way: not providing any field for it by default, and letting projects needing it implement it the way the want.

@XWB
Copy link
Member

XWB commented Jan 26, 2017

See above.

@XWB XWB closed this as completed Jan 26, 2017
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

No branches or pull requests

3 participants