Is it possible change "actcode" length from 32.

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

Post Reply
Sreedhar_cd
Posts: 8
Joined: 22 Mar 2023, 08:37

Is it possible change "actcode" length from 32.

Post by Sreedhar_cd »

Hi , Is it possible change "actcode" length from 32 in "Activation and Email" flow.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Is it possible change "actcode" length from 32.

Post by Lapo »

HI,
sorry but it's not very clear what you are referring to
Please be more specific and provide the details of the problem you wish to solve.

Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
Sreedhar_cd
Posts: 8
Joined: 22 Mar 2023, 08:37

Re: Is it possible change "actcode" length from 32.

Post by Sreedhar_cd »

Hi Lapo,

We are using sign up assistence component for our user registration. In user registartion flow, we are sending "activation code" to email and verifying.

As per the document "http://docs2x.smartfoxserver.com/ExtensionsJava/signup-assistant-activation", present the length of the activation code is "32" characters. As per my requirement i need to decrease the length to "6" characters.

Can you pease help me
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Is it possible change "actcode" length from 32.

Post by Lapo »

Thanks for the clarification,
we don't support variable length codes at the moment.

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
SmartfoxEnjoyer
Posts: 93
Joined: 13 Dec 2023, 20:39

Re: Is it possible change "actcode" length from 32.

Post by SmartfoxEnjoyer »

Try this:

Code: Select all

      suac.getConfig().activationCodeLength = 6;
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Is it possible change "actcode" length from 32.

Post by Lapo »

My bad, I had completely forgotten that this existed! :shock: :D
Thanks @SmartfoxEnjoyer

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply