mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
deprecations: get rid of DEP0005 about Buffer()
Similar code still lives in some dependent libraries. It will be updated when upgrading the dependencies. Fixes #3446
This commit is contained in:
parent
6d5a6cf795
commit
9d815c58b8
2 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@ exports.basicAuth = function (req, res, next) {
|
|||
var authenticate = function (cb) {
|
||||
// If auth headers are present use them to authenticate...
|
||||
if (req.headers.authorization && req.headers.authorization.search('Basic ') === 0) {
|
||||
var userpass = new Buffer(req.headers.authorization.split(' ')[1], 'base64').toString().split(":")
|
||||
var userpass = Buffer.from(req.headers.authorization.split(' ')[1], 'base64').toString().split(":")
|
||||
var username = userpass.shift();
|
||||
var password = userpass.join(':');
|
||||
var fallback = function(success) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue