Examples of chkpass()


Examples of ecks.services.SrvAuth.chkpass()

                Generic.curProtocol.outPRVMSG(who, replyto, "Password Changed!");
                Logging.warn("SRVAUTH", user + " changed password for username: " + args[0]);
            } else Generic.curProtocol.outPRVMSG(who, replyto, "\u0002Error:\u0002 No such username exists!");
        } else { // we're not a helper. vette old password
            // changepass oldpass newpass
            if (temp.chkpass(args[0], user)) {
                temp.getUsers().get(uTemp).cngpass(args[1]);
                Generic.curProtocol.outPRVMSG(who, replyto, "Password Changed!");
            } else Generic.curProtocol.outPRVMSG(who, replyto, "\u0002Error:\u0002 Old password incorrect!");
        }
    }
View Full Code Here

Examples of ecks.services.SrvAuth.chkpass()

        if (!Configuration.getSvc().containsKey(Configuration.authservice))
            return 0;

        SrvAuth auth = (SrvAuth)Configuration.getSvc().get(Configuration.authservice);

        if (auth.getUsers().containsKey(username.toLowerCase()) && auth.chkpass(password, username.toLowerCase()))
            return 1;

        return 0;
    }
View Full Code Here

Examples of ecks.services.SrvAuth.chkpass()

        SrvAuth temp = ((SrvAuth) who);
        if (arguments.split(" ").length == 2) {
            if (Generic.Users.get(user).authhandle == null) {
                String uname = arguments.split(" ")[0].toLowerCase();
                if (temp.getUsers().containsKey(uname)) { // if the username exists
                    if (temp.chkpass(arguments.split(" ")[1], uname)) { // password matches
                        Generic.Users.get(user).authhandle = uname;
                        ((SrvAuth) who).getUsers().get(uname).setMeta("_ts_last", util.getTS()); // update last seen metadata
                        try {
                            Generic.curProtocol.srvSetAuthed(who, Generic.Users.get(user).uid, Long.parseLong(temp.getUsers().get(uname).getMeta("svsid")));
                        } catch (NoSuchElementException nsee) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.