ovflowd / chocolatey

:chocolate_bar: The open source Habbo.com Engine & CMS
GNU General Public License v3.0
51 stars 19 forks source link

Create Avatar - Restriction #192

Open Ducksane opened 7 years ago

Ducksane commented 7 years ago

It is necessary to add an option to prevent the creation of avatar beyond a certain threshold. Beyond the 50 Avatars allowed by default, we always create them. It would even be interesting to be able to modify this option in the configuration.

It would therefore be necessary to modify :

public function checkName in AccountController

MAX_AVATARS = 50 -> MAX_AVATARS = window.chocolatey.max_avatars in scripts.js

ovflowd commented 7 years ago

Okay. I will think about it :)