login-page

Spring security custom login page

有些话、适合烂在心里 提交于 2019-12-24 19:44:54
问题 Can anybody please help me to get how can i add more field in custom login jsp file ? The default is "j_username" and "j_password". What if i want to add more field i.e and want to get it in my CustomAuthenticationProvider class which extends AbstractUserDetailsAuthenticationProvider . If there is any resource or link out there please let me know. 回答1: Quoting the official FAQ: 1.1. I need to login in with more information than just the username. How do I add support for extra login fields (e

Fantom-text in jTextField. How?

时间秒杀一切 提交于 2019-12-14 03:07:29
问题 We come across some popular sites login screen, where a faint gray Username is written in username textbox. I wonder can be this implemented in java swings? I have theories, implementing by mouseEvents. Couldn't figure out how to to. 回答1: Check out Text Prompt. It allows you to display text and/or icon as a prompt for the usage of the text field. The prompt will be removed as soon as any characters are entered into the text field. You can also control when the prompt is displayed: ALWAYS –

PHP login using MySQL data and hashed password

有些话、适合烂在心里 提交于 2019-12-13 08:57:14
问题 I'm trying to login through PHP using a usernames and passwords from a MySQL database that saves userID, usernames, and hashed_passwords (that I created earlier using a registration form, and the salt for the md5 hash is: 2155). The problem is I'm not able to get the password to be unencrypted to use it for the login. And I'm not sure if this is how to code the query to look for username and password from the database based on the user input. $sql = "SELECT * FROM user where username = '$

Servlet filter not applying to container managed login page

社会主义新天地 提交于 2019-12-12 12:56:07
问题 I'm using a Filter to insert anti-clickjacking headers in all my pages - this works correctly, except on the JBoss EAP 6.3 container managed login page, which is one of the more important pages to have it. The filter is not called at all with the login page, which is served off of http://localhost/Application/ . Filter mappings I've tried include <filter> <filter-name>InsertXFrameOptions</filter-name> <filter-class>com.filter.InsertXFrameOptionsFilter</filter-class> </filter> <filter-mapping>

Parameterized queries in PHP with MySQL connection

戏子无情 提交于 2019-12-10 15:27:27
问题 I've read about SQL injection so I tried it with my site and of course it worked.. I know that the solution is parameterized queries and I also know that there are a lot of examples out there but none of them mentions the part where we're connecting to the database. So here's a part of my login page's PHP code: $userName = $_POST["username"]; $userPass = $_POST["password"]; $query = "SELECT * FROM users WHERE username = '$userName' AND password = '$userPass'"; $result = mysqli_query($dbc,

PrimeFaces CSS skin not showing in login page, also JavaScript undefined errors

邮差的信 提交于 2019-11-26 07:49:55
问题 I am using PrimeFaces 3.4 in my web app and for a particular page the controls are not displayed with the normal PrimeFaces skin: <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"> <html xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:h=\"http://java.sun.com/jsf/html\" xmlns:f=\"http://java.sun.com/jsf/core\" xmlns:ui=\"http://java.sun.com/jsf/facelets\" xmlns:p=\"http://primefaces.org/ui\"> <h:head> <title>VMS login<