Merge branch 'KoryIII-master-patch-57971' into 'master'

Update peertube-plugin-auth-ldap

See merge request framasoft/peertube/official-plugins!16
This commit is contained in:
Chocobozzz 2022-05-09 07:45:09 +00:00
commit ee22a670d9
4 changed files with 5 additions and 3 deletions

View File

@ -1,3 +1,4 @@
# LDAP auth plugin for PeerTube
Add LDAP support to login form in PeerTube.
Add LDAP support to login form in PeerTube.
Uppercase letters in username convert to lowercase (KoryШ)

View File

@ -248,6 +248,7 @@ async function login (peertubeHelpers, settingsManager, options) {
}
let username = user[usernameProperty] || ''
username = username.toLowerCase()
username = username.replace(/[^a-z0-9._]/g, '_')
let email = user[mailProperty]

View File

@ -1,6 +1,6 @@
{
"name": "peertube-plugin-auth-ldap",
"version": "0.0.11",
"version": "0.0.12",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "peertube-plugin-auth-ldap",
"version": "0.0.11",
"version": "0.0.12",
"description": "Add LDAP support to login form in PeerTube.",
"engine": {
"peertube": ">=2.2.0"