Skip to content

Simple bcrypt Kirby CMS Panel Field for encrypting passwords on the fly.

License

Notifications You must be signed in to change notification settings

iandoe/kirbycms-panel-bcrypt-field

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

bCrypt Field - Kirby CMS Panel

Simple bcrypt Kirby CMS Panel Field for encrypting passwords on the fly.

This uses dcodeIO's javascript bcrypt implementation and jQuery already present in your KirbyCMS Panel

Install

After installing the kirbycms panel, create a directory site/panel/fields, cd into this directory and clone this repository in the bcrypt directory.

git clone git@github.com:iandoe/kirbycms-panel-bcrypt-field.git bcrypt

You should end up with the new directory site/panel/fields/bcrypt

Usage

Once installed, when creating a panel blueprint, you can add the field using type: bcrypt, to put a placeholder, you can use the placeholder: yourtext property or if your website is in multiple languages, you can use the Kirby Syntax for multi-lingual websites, eg:

# default blueprint

title: Page
pages: true
files: true
fields:
  title:
    label: Title
    type:  text
  password:
    label: Password
    type:  bcrypt
    placeholder:
    	en: Change current password
    	fr: Changer le mot de passe

Behaviour

The password is hashed before the form is submitted in the Kirby Panel, the form is submitted once the password has been successfully hashed (this can take a few seconds max depending on the client computer) and is stored in its encrypted form in the content file. This of course requires javascript to be enabled.

License

This is released under the MIT License

Guillaume 'Wilhearts' PICARD, 2014

About

Simple bcrypt Kirby CMS Panel Field for encrypting passwords on the fly.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages