***UNCHECKED*** Trả lời: About: config to set /login as a start point of domserver webapp when user access to it

Tran Binh Duong (FE FPTU HN) DuongTB at fe.edu.vn
Thu Oct 29 06:10:04 CET 2020


Hi,

Thanks for your response, please could you explain more detail how to pass $request to function so that the system processing it? I'm not familiar with Symfony.
>> To get the request info, pass Symfony\Component\HttpFoundation\Request $request to the function and check
>> $request->query->getBoolean(’static’)

Actually, I would like to set the static value to 1 in RootController before redirect it to public_index, so I need to get the request and set that value.


Regards,
Trần Bình Dương (Mr)
IT Lecturer
Software Engineering Department , FPT University
29th Kilometer Thang Long Boulevard, Thach Hoa commune, Thach That Province, Education and Training Area, Hoa Lac High Tech Park, Ha Noi
Mobile:(+84) 936168165
Skype: avn_duong.tb
E-mail: duongtb at fe.edu.vn
Website: ....

________________________________
Từ: Nicky Gerritsen <nickygerritsen at me.com>
Đã gửi: 28 Tháng Mười 2020 5:14 CH
Đến: Tran Binh Duong (FE FPTU HN) <DuongTB at fe.edu.vn>
Chủ đề: Re: ***UNCHECKED*** About: config to set /login as a start point of domserver webapp when user access to it

Hi,

Change the logic here: https://github.com/DOMjudge/domjudge/blob/master/webapp/src/Controller/RootController.php#L39

To get the request info, pass Symfony\Component\HttpFoundation\Request $request to the function and check $request->query->getBoolean(’static’)

Nicky
On 28 Oct 2020, 11:12 +0100, Tran Binh Duong (FE FPTU HN) <DuongTB at fe.edu.vn>, wrote:
Hi,

Because of separating user flows into two lines in our system, I need to drive the contestant access flow to /login page first, and public audience to /public page with a paramenter as static=1.

Which is the options I can do?

Trần Bình Dương (Mr)
IT Lecturer
Software Engineering Department , FPT University
29th Kilometer Thang Long Boulevard, Thach Hoa commune, Thach That Province, Education and Training Area, Hoa Lac High Tech Park, Ha Noi
Mobile:(+84) 936168165
Skype: avn_duong.tb
E-mail: duongtb at fe.edu.vn
Website: ....

_______________________________________________
DOMjudge-devel mailing list
DOMjudge-devel at domjudge.org
https://www.domjudge.org/mailman/listinfo/domjudge-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.domjudge.org/pipermail/domjudge-devel/attachments/20201029/783b7804/attachment.htm>


More information about the DOMjudge-devel mailing list