비밀번호 변경 기능 추가
parent
e45792a2d0
commit
d8686230e8
@ -0,0 +1,15 @@
|
||||
package cokr.xit.fims.base.service.bean;
|
||||
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import cokr.xit.foundation.User;
|
||||
|
||||
@Component("user2Bean")
|
||||
public class UserBean extends cokr.xit.base.user.service.bean.UserBean {
|
||||
|
||||
public boolean confirmPassword(String password) {
|
||||
User user = this.getUser(currentUser().getAccount(), currentUser().getInstitute());
|
||||
return user.getPassword().equals(passwordEncoder.encode(password));
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue