Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Epic #169848 Feat: Get core and custom fields for the user sign-up/ed… #28

Open
wants to merge 1 commit into
base: release-2.0.1
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/language/en-GB/en-GB.plg_api_users.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ PLG_API_USERS_DESCRIPTION="This plugin exposes users to the Joomla! API. Support
PLG_API_USERS_BAD_REQUEST_MESSAGE="Bad request"
PLG_API_USERS_REQUIRED_DATA_EMPTY_MESSAGE="Required data is empty"
PLG_API_USERS_ACCOUNT_CREATED_SUCCESSFULLY_MESSAGE="Congratulations! Your account has been created successfully"
PLG_API_USERS_ACCOUNT_CREATED_SUCCESSFULLY_MESSAGE_WITH_ACTIVATION_LINK="Congratulations! Your account has been created successfully. Verify your email to activate your account"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congratulations! Your account was successfully created. Please verify your e-mail address to activate your account.

PLG_API_USERS_ACCOUNT_UPDATED_SUCCESSFULLY_MESSAGE="Profile Succesfully Updated."
PLG_API_USERS_PROFILE_CREATED_SUCCESSFULLY_MESSAGE="profile created successfully"
PLG_API_USERS_UNABLE_CREATE_PROFILE_MESSAGE="Unable to create profile"
PLG_API_USERS_EASYSOCIAL_NOT_INSTALL_MESSAGE="Easysocial is not installed properly"
Expand Down
10 changes: 6 additions & 4 deletions src/users.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,17 @@ public function __construct(&$subject, $config = array())
parent::__construct($subject, $config = array());

ApiResource::addIncludePath(dirname(__FILE__).'/users');
/*load language file for plugin frontend*/
$lang = JFactory::getLanguage();

/*load language file for plugin frontend*/
$lang = JFactory::getLanguage();
$lang->load('plg_api_users', JPATH_ADMINISTRATOR,'',true);

// Set the login resource to be public
$this->setResourceAccess('login', 'public','get');
$this->setResourceAccess('users', 'public', 'post');
$this->setResourceAccess('config', 'public', 'get');
$this->setResourceAccess('user', 'public', 'post');
$this->setResourceAccess('register', 'public', 'get');
$this->setResourceAccess('register', 'public', 'post');
}
}
Loading