Posts

Showing posts with the label login

Login form in mysql

Image
Clash Royale CLAN TAG #URR8PPP Login form in mysql I am using Mysql netbeans . I have created a db table "userdetails_summertrainingproject" . In the login form I have two fileds to fill one is "UUId_JTextField" and other is "Password1_JPasswordField". I want to compare that the password value entered by the user is same as that in db for the particular UUId entered by the user. UUid is unique. try{ Class.forName("com.mysql.jdbc.Driver"); Connection conn=DriverManager.getConnection("jdbc:mysql://localhost:3306/mysql","root",""); String query = "SELECT password FROM userdetails_summertrainingproject WHERE UUId=?;"; PreparedStatement preparedStatement = conn.prepareStatement(query); preparedStatement.setString(1,UUId_JTextField.getText()); ResultSet rs = preparedStatement.executeQuery(); ...

Flutter: login through a webview

Image
Clash Royale CLAN TAG #URR8PPP Flutter: login through a webview I'm pretty new to Flutter. Is there a way to login through a webview into our app? e.g. In the first page there is this webview where we can do the login. After we logged in, the app takes us in a second page where we can do other stuff. There are authentication packages that do that. You should be able to derive a custom solution from their source. I don't know which exactly but they should be in pub.dartlang.org. Perhaps facebook auth (not sure) – Günter Zöchbauer 3 hours ago 1 Answer 1 In my app I use instagram implicit authentification, which implies to login user in webview and get token from redirect url. I use flutter_webview_plugin Next code builds WebviewScaffold with login ...