| | |
| | | package com.gitblit.wicket;
|
| | |
|
| | | import com.gitblit.Build;
|
| | | import com.gitblit.Constants;
|
| | | import java.io.Serializable;
|
| | |
|
| | | public class User {
|
| | | import com.gitblit.Constants;
|
| | | import com.gitblit.utils.StringUtils;
|
| | |
|
| | | public class User implements Serializable {
|
| | |
|
| | | private static final long serialVersionUID = 1L;
|
| | |
|
| | | private String username;
|
| | | private String cookie;
|
| | |
| | |
|
| | | public User(String username, char[] password) {
|
| | | this.username = username;
|
| | | this.cookie = Build.getSHA1((Constants.NAME + username + new String(password)).getBytes());
|
| | | this.cookie = StringUtils.getSHA1((Constants.NAME + username + new String(password)));
|
| | | }
|
| | |
|
| | | public void canAdmin(boolean value) {
|