Package cu.ftpd.user

Examples of cu.ftpd.user.User.passwd()


                // NOTE: we keep "site primarygroup" and "site tagline" and "site passwd" as a convenience command for users to change their own information
                if ("logins".equals(property)) {
                    target.setLogins(Integer.parseInt(value));
                    connection.respond("200 Setting 'logins' to " + target.getLogins() + " for user " + target.getUsername());
                } else if ("passwd".equals(property)) {
                    target.passwd(ServiceManager.getServices().getUserbase().createHashedPassword(value));
                    connection.respond("200 changed password for user " + target.getUsername());
                } else if ("suspended".equals(property)) {
                    target.setSuspended(Boolean.parseBoolean(value));
                    connection.respond("200 Setting 'suspended' to " + target.isSuspended() + " for user " + target.getUsername());
                } else if ("hidden".equals(property)) {
View Full Code Here


            } else if ("removegadminforgroup".equals(property)) {
                user.removeGadminForGroup(value);
            } else if ("hidden".equals(property)) {
                user.setHidden(Boolean.parseBoolean(value));
            } else if ("password".equals(property)) {
                user.passwd(value);
            } else if ("tagline".equals(property)) {
                user.setTagline(value);
            } else if ("logins".equals(property)) {
                user.setLogins(Integer.parseInt(value));
            } else if ("suspended".equals(property)) {
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.