Git Product home page Git Product logo

Comments (3)

edno avatar edno commented on August 25, 2024

In gitlab by @edno on Aug 12, 2016, 09:54

Il faut aussi supprimer tout les caracteres non alphabetiques, et convertir les accents (solution ici).

Second point, actuellement la regle est min 3 caracteres pour le prenom et le nom, mais je vais reduire a 1 caractere (alpha). Je pense donc construire le login selon la regle suivante:

A- 3 premiers caracteres du prenom converti (converti = regles precedentes)
B- 3 premiers caracteres du nom converti
C- Si A < 3 alors prendre les  3+(3-A) carateres du nom converti
D- Si B < 3 alors prendre les  3+(3-B) carateres du prenom converti
E- Prendre 4+(3-C+3-D) chiffres pour completer

Exemples:

Sy Dupond
A = sy
B = dup
C = dupo
D = sy
E = sydupo5464

Sy Ma
A = sy
B = ma
C = ma
D = sy
E = syma54649

from kleis.

edno avatar edno commented on August 25, 2024

In gitlab by @edno on Aug 12, 2016, 19:00

Status changed to closed by commit 005f389

from kleis.

edno avatar edno commented on August 25, 2024

In gitlab by @edno on Aug 12, 2016, 19:06

Le code JS pour la generation du compte et mot de passe est maintenant dans un fichier dedié kleis.js qui expose 2 objets:

  • KleisAccount
  • KleisPassword

from kleis.

Related Issues (20)

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.