Changeset 6569


Ignore:
Timestamp:
Jan 11, 2018, 1:47:55 PM (20 months ago)
Author:
daduve
Message:

Do not save passwords at login

Location:
open-sysclone/trunk/fuentes/open-sysclone-gui.install/usr/share/open-sysclone-gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • open-sysclone/trunk/fuentes/open-sysclone-gui.install/usr/share/open-sysclone-gui/js/login.js

    r647 r6569  
     1var fs = require('fs');
    12function loginManager(){
    23    this.BindLoginEventHandlers = function BindLoginEventHandlers(){
     
    7475}
    7576
     77
     78function deleteFolderRecursive(path) {
     79  if (fs.existsSync(path)) {
     80    fs.readdirSync(path).forEach(function(file, index){
     81      var curPath = path + "/" + file;
     82      if (fs.lstatSync(curPath).isDirectory()) { // recurse
     83        deleteFolderRecursive(curPath);
     84      } else { // delete file
     85        fs.unlinkSync(curPath);
     86      }
     87    });
     88    fs.rmdirSync(path);
     89  }
     90}
     91
     92
    7693$(document).ready(function() {
     94       
     95        deleteFolderRecursive("/tmp/.chromium_open");
    7796        var lm = new loginManager();
    7897        lm.BindLoginEventHandlers();
  • open-sysclone/trunk/fuentes/open-sysclone-gui.install/usr/share/open-sysclone-gui/package.json

    r6565 r6569  
    1818    "plugin": true
    1919  },
    20   "chromium-args": "--ignore-certificate-errors"
     20  "chromium-args": "--ignore-certificate-errors --user-data-dir='/tmp/.chromium_open'"
    2121 
    2222  /*
Note: See TracChangeset for help on using the changeset viewer.