Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Auto log in feature
Forum Updated to NodeBB v4.3 + New Features

Auto log in feature

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 874 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    GCDX
    wrote on 21 Jun 2018, 06:14 last edited by
    #1

    Hello everyone,

    I was wondering is there any way that i can auto log into a website having stored my username and password?
    For example, if i want to log into facebook, i have a webview nad webdialog that brings me into the sign in page for facebook, how do i manipute the webpage with QT in order to have it automatically type in my password and user name? Thank you so much!

    J 1 Reply Last reply 21 Jun 2018, 08:24
    0
    • G GCDX
      21 Jun 2018, 06:14

      Hello everyone,

      I was wondering is there any way that i can auto log into a website having stored my username and password?
      For example, if i want to log into facebook, i have a webview nad webdialog that brings me into the sign in page for facebook, how do i manipute the webpage with QT in order to have it automatically type in my password and user name? Thank you so much!

      J Online
      J Online
      JonB
      wrote on 21 Jun 2018, 08:24 last edited by
      #2

      @GCDX
      The usual way of getting as far as filling in controls (like username/password) on a web page is via cookies. For a QWebView see http://www.qtcentre.org/threads/21331-How-to-enable-cookie-in-QWebView and http://doc.qt.io/qt-5/qnetworkaccessmanager.html#setCookieJar.

      If you want to go further and actually auto-login (without pressing a button), you'd probably have to look at either manipulating the page (via JavaScript) to do an auto-submit with the controls pre-filled-in, or see if your target web page has a URL syntax or similar to allow username/password credentials to be passed directly by-passing the logon screen.

      1 Reply Last reply
      0

      1/2

      21 Jun 2018, 06:14

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved