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 931 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 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!

    JonBJ 1 Reply Last reply
    0
    • G GCDX

      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!

      JonBJ Online
      JonBJ Online
      JonB
      wrote on 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

      • Login

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