]>
git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - server/initializers/migrations/0010-users-password.js
e031fa142457c55e41a35f48143482810eef6d3a
2 Convert plain user password to encrypted user password.
5 const mongoose
= require('mongoose')
7 const User
= mongoose
.model('User')
9 exports
.up = function (callback
) {
10 User
.list(function (err
, users
) {
11 if (err
) return callback(err
)
13 users
.forEach(function (user
) {
21 exports
.down = function (callback
) {
22 throw new Error('Not implemented.')