- Posts: 3
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
<form name='loginform' id='loginform' method='post' action='https://yourinstal/admin/admin.php' > <table > <tr> <td >User</td> <td><input class="text" name='user' id='user' type='text' size='15' /></td> </tr> <tr> <td >Password</td> <td><input class="text" name='password' id='password' type='password' size='15' /></td> </tr> <!-- languages choice --> </form>
...yesit is supposed to pass the values of ids 'user' and 'password' to the respective ids in admin.php, right
Yes you're rightIn case a user gives wrong username and/or password, i get the default (limesurvey's) fail-to-log-in page. I know it is supposed to but i would like it to redirect to my fail-to-log-in page (i think the only way is to edit the admin.php).
if (!isset($logoutsummary)) { // redirect to home page $loginsummary = "<meta http-equiv='refresh' content='0;url=$rooturl/'> <form style='display:none' name='loginform' id='loginform' method='post' action='$homeurl/admin.php'><p><strong>".$clang->gT("You have to login first.")."</strong><br /> <br />"; }
Does this work in Limesurvey 4.2?Ben_V wrote:
If you only want to change the login page, its maybe easier trying to create your own custom login page (yourinstal/newloginpage/)
You can embed the original login form even in any basic html page...Code:<form name='loginform' id='loginform' method='post' action='https://yourinstal/admin/admin.php' > <table > <tr> <td >User</td> <td><input class="text" name='user' id='user' type='text' size='15' /></td> </tr> <tr> <td >Password</td> <td><input class="text" name='password' id='password' type='password' size='15' /></td> </tr> <!-- languages choice --> </form>
/themes/admin/YourAdminTheme/css/yourfile.css
/themes/admin/YourAdminTheme/config.xml
<filename>yourfile.css</filename>
<css></css>
<filename>statistics.css</filename>
/themes/admin/YourAdminTheme/images
/themes/admin/YourAdminTheme
/themes/survey/YourDefaultTheme/views/layout_survey_list.twig
/subviews/
/themes/survey/YourDefaultTheme/css/custom.css
/themes/survey/YourDefaultTheme/files/
/application/views/admin/authentication/login.php
<style></style>
NOTE* take a look at the Theme editor in the backend, under the Configuration menu. There you can use the Extend button to create your own theme starting from existing one, without modify original files. Up to you.