mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-10 14:44:40 +02:00
+ Introduction of WIP asset system - menus, prompts, art, etc. @type:location/asset
This commit is contained in:
parent
113e16df0d
commit
3336caeec9
6 changed files with 95 additions and 26 deletions
|
@ -29,11 +29,11 @@ function SSHClient(input, output) {
|
|||
|
||||
if('password' === ctx.method) {
|
||||
// :TODO: Log attempts
|
||||
user.authenticate(ctx.username, ctx.password, self, function onAuthResult(isAuth) {
|
||||
if(isAuth) {
|
||||
ctx.accept();
|
||||
} else {
|
||||
user.authenticate(ctx.username, ctx.password, self, function onAuthResult(err) {
|
||||
if(err) {
|
||||
ctx.reject();
|
||||
} else {
|
||||
ctx.accept();
|
||||
}
|
||||
});
|
||||
} else if('publickey' === ctx.method) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue