2021-06-08 01:23:25 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module RegistrationsHelper
|
2021-09-04 01:27:46 +05:30
|
|
|
def signup_username_data_attributes
|
|
|
|
{
|
|
|
|
min_length: User::MIN_USERNAME_LENGTH,
|
|
|
|
min_length_message: s_('SignUp|Username is too short (minimum is %{min_length} characters).') % { min_length: User::MIN_USERNAME_LENGTH },
|
|
|
|
max_length: User::MAX_USERNAME_LENGTH,
|
|
|
|
max_length_message: s_('SignUp|Username is too long (maximum is %{max_length} characters).') % { max_length: User::MAX_USERNAME_LENGTH },
|
|
|
|
qa_selector: 'new_user_username_field'
|
|
|
|
}
|
|
|
|
end
|
2023-04-23 21:23:45 +05:30
|
|
|
|
|
|
|
def arkose_labs_challenge_enabled?
|
|
|
|
false
|
|
|
|
end
|
2021-06-08 01:23:25 +05:30
|
|
|
end
|
|
|
|
|
|
|
|
RegistrationsHelper.prepend_mod_with('RegistrationsHelper')
|