Looking for help?
< All Topics
Print

How to active logoff / logon with PIN instead user name + password

when you use user name + password to login, but you want use PIN for logon / logoff . you can use this snippet code to yourtheme/function.php or snippet code plugin

add_action( 'init', function(){
    global $op_in_pos_screen;
    if($op_in_pos_screen)
    {
        wp_add_inline_script('openpos.pos.head',"
                    if(!global){
                        var global = global || window;
                        
                    }
                    if(global.pos_setting)
                    {
                        global.pos_setting.logoff_mode = 'pin';
                    }else{
                        global.pos_setting = {logoff_mode : 'pin'};
                    }
                    
                    
                    console.log(global);
                ",'after');
    }
 },120);
Table of Contents