Coder Social home page Coder Social logo

yann-yinn / adonis-starter Goto Github PK

View Code? Open in Web Editor NEW
71.0 71.0 16.0 4.42 MB

A Node.js / TypeScript / Postgres starter with ready-to-use users management (register, login, forgot password etc) to focus on building your new ideas. Built upon the excellent AdonisJS MVC Framework.

Shell 0.32% TypeScript 94.17% JavaScript 5.35% CSS 0.16%
adonisjs

adonis-starter's People

Contributors

hugold avatar sreejit7 avatar yann-yinn avatar yoann-tyt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

adonis-starter's Issues

Mot de passe oublié

Créer le formulaire qui permet de mettre à jour son mot de passe oublié

  • ajout du lien "forgot password" sur le formulaire de login
  • accès à la page de reset du password depuis le lien (reçu théoriquement via email, les emails n'étant pas encore gérés)

Mitigate brute force attacks

There is no mechanism for now to prevent a brute force attack (submitting a lot of posts request to login to the app).

Maybe allow only 3 or 5 login within 24 hours attempts is good enough for now ?

Refacto passworfields to a component

Password field is becoming more and more complex, leading to duplicate code in several different forms.

  • confirmation field
  • icon to show / hide password
  • instructions for the password
  • strength meter is coming soon.

We should extract it to a adonis "component", and the use this component in all form using the password fields. (see this comment for more details on the component #18 (comment))

Create an online demo

Don't want to pay for a demo, where could we host postgres + node for free to create an online Demo ?
Heroku free plan ? Explore solutions

Problem with a timed logout

Hi.

First, thank you for this starter, it is very easy and straightforward to start a new project.
My problem is with timed logout. Each time when the app logs me out, I'm presented with the login form which for some reason is not working. After submitting all credentials the page starts to load endlessly. The fix is quite simple, just refresh the login page before entering the credentials or while it's endlessly loading and repeat login submission.

Here is my screenshot of the terminal with the visible error message:
Slika zaslona s 2022-05-26 16-30-42

I'm using elementaryOS 6.1 Linux, an Ubuntu 20.04-based distro.

Thank you again for your time and effort in putting this gem together.

Cheers.

Envoi des emails : proposition

Voir doc Adonis : https://docs.adonisjs.com/guides/mailer

1) Email à la création du compte

A la création d'un nouveau compte utilisateur, envoyer un email qui dit.

Welcome {{user.name}}
please click on the following link to enable your account
{{activationLink

Dans la base de données

Dans la base de données (créer une nouvelle migration pour les users qui alter la table)

  • email_verified (indique que la personne a bien activer son email) string 255 chars
  • blocked: boolean: true si utilisateur bloqué (avant confirmation email par exemple), false si utilisateur actif (après activation email)

sur App/Model/User: ajouter propriétés emailVerified et blocked

2) Email Mot de passe oublié

( #6 )

Un lien "mot de passe oublié" sur le formulaire de login envoie un email à l'utilisateur.

Celui lui envoie un mail avec lien qui lui permet de remettre à jour son mot de passe

User blocked until email is verified

config/starter.ts file: if blockUserUntilEmailVerification is true,

  1. user should not be able to login

  2. A flash message is displayed :

const message = "You must confirm your email, check your inbox. Click here to resend an email verification for your account".
session.flash({notification: message})
  1. on click, a page with a form offers him to re-enter its email and resend verification link.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.