Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
diet-accounts
Advanced tools
Readme
User account management is a general function that we reuse in every application. Accounts is a simple set of API's that you can use as a standard in all your apps.
With Accounts you can interact with user accounts without touching the backend unless you want to do something more.
If you are using diet
it's already installed.
npm install diet-accounts
// CREATE a new dietjs application
var app = new Application(options);
// SETUP account module
var account = app.accounts({
table : 'users', // mysql table
username : 'username', // username column in table
password : 'password', // password column in table
select : '*' // what to select if user authentication is successfull
});
You can interact with your Accounts trough these urls on your website:
METHOD | URL | STATUS |
--- | --- | --- | ---
POST | /account/login
| working
POST | /account/logout
| working
POST | /account/update
| beta
POST | /account/changePassword
| beta
POST | /account/delete
| beta
POST | /account/signup
| beta
POST | /account/verify
| beta
GET | /account/recover/password
| beta
POST | /account/recover/password
| beta
If the call ends with success then:
{ success: true, errors: false }
If the call fails then:
{ success: false, errors:[Array of Errors] }
All account actions are accesible via the Accounts API but you can add custom middleware functions too.
// Custom Login
account.login(function(request, response, mysql){
// do some custom stuff
response.end();
mysql.end();
});
// Custom Logout
account.logout(function(request, response, mysql){
// do some custom stuff
response.end();
mysql.end();
});
FAQs
Account Management
The npm package diet-accounts receives a total of 0 weekly downloads. As such, diet-accounts popularity was classified as not popular.
We found that diet-accounts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.