XF 2.2 How to add a new User state?

alexAlToader

New member
Hi,

I need to add a new user_state as we are having a 2 steps registration.
We have confirm_email, then we added account_incomplete, then valid.

Q1 - Is there an easy way to do this? I saw the advanceState() so it looks like the answer is no.

In this case we are we are just saving the new status and will deal with that later.
So now to saving a new status - it needs to be validated when saved.

Q2. How do we add a new value to user_state which can be recognized by the app?

Do we need to hardcode it in Entity/User->user_state->allowedValues?

Q3. How do we change that? We have 2 options

Thanks
 
Top Bottom