login api
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package io.spring.infrastructure.user;
|
||||
|
||||
import io.spring.core.user.EncryptService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
public class NaiveEncryptService implements EncryptService {
|
||||
@Override
|
||||
public String encrypt(String password) {
|
||||
return password;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean check(String checkPassword, String realPassword) {
|
||||
return checkPassword.equals(realPassword);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user