MV framework logo
  • Admin Panel
  • Architecture
  • Support
  • Feedback
Download .zip ver. 3.4.2 from 04.03.2026
Dark mode
Download .zip ver. 3.4.2 from 04.03.2026
  • Admin Panel
  • Architecture
  • Support
  • Feedback
Documentation:
Getting started
  • Installation and launch
  • Folder structure
  • Launching a simple website
  • Pre-installed models
  • SQLite getting started
  • System settings
  • Migrations
  • Debugging
Models
  • General principles of models
  • Data types
    • General characteristics
    • Boolean
    • String char
    • Numeric: int, float, order
    • Special string: url, redirect, email, phone
    • Password
    • Text
    • Date and time
    • File and image
    • Array of images
    • Choice enum
    • Parent
    • One to many
    • Many to many
    • Group
  • Model setup
  • Simple models
  • Foreign keys
  • Trees
  • Many to many
  • Group
  • Records management
  • Managing simple models
  • Additional features
Templates and routing
  • General principles of templates
  • Router object
  • MV object
  • Create a new template
  • Output of data in template
  • Record object
  • Files and images
  • Date and time
  • Redirects and http
  • Sending email
  • Special methods
Forms
  • Creating forms
  • Setting up form fields
  • Validating form fields
  • Form security
  • Working with form data
  • Using data from models
  • Form methods
SQL queries
  • Query builder
  • Direct queries
  • Pagination
  • Sorting
  • Filtration
Additional
  • AJAX
  • Sessions
  • Authorization
  • Plugins
  • Caching
  • Security
  • Admin panel add-ons
MV tracker
Dark mode
Documentation:
Getting started
  • Installation and launch
  • Folder structure
  • Launching a simple website
  • Pre-installed models
  • SQLite getting started
  • System settings
  • Migrations
  • Debugging
Models
  • General principles of models
  • Data types
    • General characteristics
    • Boolean
    • String char
    • Numeric: int, float, order
    • Special string: url, redirect, email, phone
    • Password
    • Text
    • Date and time
    • File and image
    • Array of images
    • Choice enum
    • Parent
    • One to many
    • Many to many
    • Group
  • Model setup
  • Simple models
  • Foreign keys
  • Trees
  • Many to many
  • Group
  • Records management
  • Managing simple models
  • Additional features
Templates and routing
  • General principles of templates
  • Router object
  • MV object
  • Create a new template
  • Output of data in template
  • Record object
  • Files and images
  • Date and time
  • Redirects and http
  • Sending email
  • Special methods
Forms
  • Creating forms
  • Setting up form fields
  • Validating form fields
  • Form security
  • Working with form data
  • Using data from models
  • Form methods
SQL queries
  • Query builder
  • Direct queries
  • Pagination
  • Sorting
  • Filtration
Additional
  • AJAX
  • Sessions
  • Authorization
  • Plugins
  • Caching
  • Security
  • Admin panel add-ons
MV tracker
Home Models Data types Password

Password

Purpose: password entry field
Field type in SQL table: char and varchar, values ​​are entered into the database as a hash and are not shown when editing a record.

Additional parameters:

min_length
Purpose: minimum length
Possible values: integer, positive, non-zero
Default: 6

letters_required
Purpose: mandatory presence of letters in the password
Possible values: true, false
Default: false

digits_required
Purpose: mandatory presence of digits in the password
Possible values: true, false
Default: false

must_match
Purpose: when creating/editing a record, the field value must match another field (password repetition), creating a separate field in the model for password repetition usually does not make sense, therefore this field in the form better to add dynamically.
Possible values: string, field name in models and forms
Default: null

salt
Purpose: an individual salt for hashing the password in the database specifically for this model field. In general, the APP_TOKEN value from the .env file is used.
Possible values: strings like 'NWaUKooZiGkcovR6xOEWd7aytqvq7YVk'
Default: value from .env file

Examples:

['Password', 'password', 'password', [
        'required' => true,
        'letters_required' => true,
        'digits_required' => true,
        'min_length' => 8,
        'salt' => 'NWaUKooZiGkcovR6xOEWd7aytqvq7YVk'
    ]
]

['Password repeat', 'password', 'password_repeat', [
        'required' => true,
        'must_match' => 'password'
    ]
]

Previous section

Special string: url, redirect, email, phone

Next section

Text
MV workshop banner
MV tracker

© 2014-2026, MV framework team

MV tracker project Github