peer-at-code-backend/src/be/jeffcheasey88/peeratcode/routes/users/ForgotPassword.java
2023-09-06 22:56:14 +02:00

25 lines
650 B
Java

package be.jeffcheasey88.peeratcode.routes.users;
import java.util.regex.Matcher;
import be.jeffcheasey88.peeratcode.framework.HttpReader;
import be.jeffcheasey88.peeratcode.framework.HttpWriter;
import be.jeffcheasey88.peeratcode.framework.Response;
import be.jeffcheasey88.peeratcode.framework.Route;
import be.jeffcheasey88.peeratcode.framework.User;
public class ForgotPassword implements Response{
@Route(path = "^/user/fpw$")
public void exec(Matcher matcher, User user, HttpReader reader, HttpWriter writer) throws Exception {
if(user != null){
writer.response(403, "Access-Control-Allow-Origin: *");
return;
}
}
}