Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Anonymous Ticket Portal Anonymous Ticket Portal
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 27
    • Issues 27
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • The Tor Project
  • TPA
  • Anonymous Ticket PortalAnonymous Ticket Portal
  • Merge requests
  • !10

Added Username Validator

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged MariaV requested to merge validate_usernames into master Dec 12, 2020
  • Overview 0
  • Commits 2
  • Pipelines 0
  • Changes 4

New function: Validate Username

  • added a function to validate that a user_identification string (format word-word-word) passed validation tests, including:
  • when split at '-', number of words = settings.DICE_ROLLS
  • all words in list in settings.word_list

User Landing - > CBV to FBV

  • redefined 'landing' view as a function-based view (vs class-based view) to allow for easier integration of username validation/lookup functions; .validate_username called from within user_landing_view() function.

Validation Failed:

  • added options to template to create a new codephrase or re-attempt login.
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: validate_usernames