Skip to content

Commit 50e8c45

Browse files
author
Matt Forster
authored
docs(readme): update prime login example (#326)
1 parent 1af62a7 commit 50e8c45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ const ftpServer = new FtpSrv({
4545
anonymous: true
4646
});
4747

48-
ftpServer.on('login', (data, resolve, reject) => {
49-
if(data.username === 'anonymous' && data.password === 'anonymous'){
48+
ftpServer.on('login', ({ connection, username, password }, resolve, reject) => {
49+
if(username === 'anonymous' && password === 'anonymous'){
5050
return resolve({ root:"/" });
5151
}
5252
return reject(new errors.GeneralError('Invalid username or password', 401));

0 commit comments

Comments
 (0)