Significance about several properties of the User class of Acegi.

xiaoxiao2021-03-18  193

Today, I have issued a question in Spring Forum:

What's meaning of crentialsnonexpired ...?

I don't know, some proserdetails.User Class, Such As CredentialSnonexpired. I don't know The Difference Among Enabled, Accountnonexpired and AccountnonLocked.

The following is the reply of Andreas Senft:

"Enabled" Just Means That You can use the account. This flag can be used admin to disable an account without deleeting it.

Account expiry causes you to change your password in determined interval. If you fly to do so, your account will expedition and you cannot use it. The flag indicates if your account has (not) expired.

A Locked Account Is A Different Thing. If You, for Example, Enter Three Times A Wrong Password, Your Account Might BE Locked, But it is not expired.

The flag tells You if your account is (not) loc.

Hope That Helps,

Andreas

转载请注明原文地址:https://www.9cbs.com/read-129996.html

New Post(0)