mirror of
https://github.com/drakkan/sftpgo.git
synced 2026-03-14 14:25:52 +01:00
notifier plugin: add support for login succeeded events
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
parent
e8140d7310
commit
456517af87
15 changed files with 58 additions and 24 deletions
|
|
@ -385,6 +385,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
|
|||
function selectLogEvents(){
|
||||
let idActions = $('#idActions');
|
||||
idActions.empty();
|
||||
idActions.append(new Option($.t('events.login_ok'),"5",false,false));
|
||||
idActions.append(new Option($.t('events.login_failed'),"1",false,false));
|
||||
idActions.append(new Option($.t('events.login_missing_user'),"2",false,false));
|
||||
idActions.append(new Option($.t('events.no_login_tried'),"3",false,false));
|
||||
|
|
@ -875,6 +876,8 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
|
|||
return $.t('events.no_login_tried');
|
||||
case 4:
|
||||
return $.t('events.algo_negotiation_failed');
|
||||
case 5:
|
||||
return $.t('events.login_ok');
|
||||
default:
|
||||
console.log(`unknown log action "${data}"`);
|
||||
return "";
|
||||
|
|
@ -914,7 +917,9 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
|
|||
defaultContent: "",
|
||||
render: function(data, type, row) {
|
||||
if (type === 'display') {
|
||||
return escapeHTML(data);
|
||||
if (data){
|
||||
return escapeHTML(data);
|
||||
}
|
||||
}
|
||||
return data;
|
||||
}
|
||||
|
|
@ -924,7 +929,9 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
|
|||
defaultContent: "",
|
||||
render: function(data, type, row) {
|
||||
if (type === 'display') {
|
||||
return escapeHTML(data);
|
||||
if (data){
|
||||
return escapeHTML(data);
|
||||
}
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue