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. Create Login Form (SqlServer 2014)
QtWS25 Last Chance

Create Login Form (SqlServer 2014)

Scheduled Pinned Locked Moved Unsolved General and Desktop
loginsqlserverqt5.5
11 Posts 4 Posters 4.1k 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.
  • M Offline
    M Offline
    M4RZB4Ni
    wrote on 17 Sept 2016, 15:42 last edited by
    #1

    Hello
    have good TiME
    i want to create a login Form using Sql Server 2014
    and a restore Form By email of user
    i searched in the google and you tube but the tutorials was not Obvious!
    who can Help me ?

    Thanks
    M4RZB4Ni

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 17 Sept 2016, 21:20 last edited by
      #2

      Hi,

      Do you mean two QLineEdit in a QDialog for the login ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      M 1 Reply Last reply 17 Sept 2016, 21:30
      0
      • S SGaist
        17 Sept 2016, 21:20

        Hi,

        Do you mean two QLineEdit in a QDialog for the login ?

        M Offline
        M Offline
        M4RZB4Ni
        wrote on 17 Sept 2016, 21:30 last edited by M4RZB4Ni
        #3

        @SGaist
        hi
        Yes!
        in one form(stacked widget)
        i have two LineEdit
        user
        pass
        and in other form i have
        user
        email
        password
        for recovery password if user and email exists !

        Thanks
        M4RZB4Ni

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 17 Sept 2016, 21:34 last edited by
          #4

          Then what exactly are you missing to go further ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          M 1 Reply Last reply 17 Sept 2016, 21:53
          0
          • S SGaist
            17 Sept 2016, 21:34

            Then what exactly are you missing to go further ?

            M Offline
            M Offline
            M4RZB4Ni
            wrote on 17 Sept 2016, 21:53 last edited by
            #5

            @SGaist said in Create Login Form (SqlServer 2014):

            missing

            i dont know how i should do this exactly!

            Thanks
            M4RZB4Ni

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 17 Sept 2016, 22:05 last edited by
              #6

              Sorry but it's a bit too vague.

              Do you mean you don't know how to setup a QSqlDatabase ?
              Or you don't know how to get your QLineEdit contents when .e.g. clicking on a QPushButton to trigger the login ?

              Please, state exactly where you currently are and what would the next step be.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              M 1 Reply Last reply 17 Sept 2016, 22:23
              0
              • S SGaist
                17 Sept 2016, 22:05

                Sorry but it's a bit too vague.

                Do you mean you don't know how to setup a QSqlDatabase ?
                Or you don't know how to get your QLineEdit contents when .e.g. clicking on a QPushButton to trigger the login ?

                Please, state exactly where you currently are and what would the next step be.

                M Offline
                M Offline
                M4RZB4Ni
                wrote on 17 Sept 2016, 22:23 last edited by M4RZB4Ni
                #7

                @SGaist said in Create Login Form (SqlServer 2014):

                vague

                i want to create a login page
                and a restore password page for users!
                login page have this :
                user
                pass
                restore page have this:
                user
                mail
                pass(show from db)
                thats all!

                my database connected in the past
                i want only know how i must program this login page?

                Thanks
                M4RZB4Ni

                M V 2 Replies Last reply 19 Sept 2016, 09:47
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 18 Sept 2016, 20:20 last edited by
                  #8

                  I understood what you want to create. What I don't know is at which stage you are.

                  E.g. a minimal login page is two QLineEdits with the password input protected and a QPushButton to start the login process. For the logic, a slot that does the validation and for the rest. Not knowing what your application does I can't say.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • V Offline
                    V Offline
                    VRonin
                    wrote on 19 Sept 2016, 07:21 last edited by
                    #9

                    KDE API has those classes done already:

                    • Login https://api.kde.org/frameworks/kwidgetsaddons/html/classKPasswordDialog.html
                    • Create new password: https://api.kde.org/frameworks/kwidgetsaddons/html/classKNewPasswordDialog.html

                    "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
                    ~Napoleon Bonaparte

                    On a crusade to banish setIndexWidget() from the holy land of Qt

                    1 Reply Last reply
                    2
                    • M M4RZB4Ni
                      17 Sept 2016, 22:23

                      @SGaist said in Create Login Form (SqlServer 2014):

                      vague

                      i want to create a login page
                      and a restore password page for users!
                      login page have this :
                      user
                      pass
                      restore page have this:
                      user
                      mail
                      pass(show from db)
                      thats all!

                      my database connected in the past
                      i want only know how i must program this login page?

                      M Offline
                      M Offline
                      mjsurette
                      wrote on 19 Sept 2016, 09:47 last edited by
                      #10

                      @M4RZB4Ni
                      Have you considered the security issues with this setup?

                      To retrieve the password, you have to log in to the database as an anonymous user and have the database itself trigger an email.

                      To have the form itself directly recover the password would allow anyone knowing your email to log in as you. Even emailing the password is a somewhat questionable practice as email can be sniffed.

                      If this is a low value database, then you may consider these to be acceptable trade-offs.

                      Mike.

                      1 Reply Last reply
                      3
                      • M M4RZB4Ni
                        17 Sept 2016, 22:23

                        @SGaist said in Create Login Form (SqlServer 2014):

                        vague

                        i want to create a login page
                        and a restore password page for users!
                        login page have this :
                        user
                        pass
                        restore page have this:
                        user
                        mail
                        pass(show from db)
                        thats all!

                        my database connected in the past
                        i want only know how i must program this login page?

                        V Offline
                        V Offline
                        VRonin
                        wrote on 19 Sept 2016, 10:12 last edited by
                        #11

                        @M4RZB4Ni said in Create Login Form (SqlServer 2014):

                        pass(show from db)

                        I just noticed this. if your DB knows what the password is it is a threat not only to your DB security but for each individual user. You can get sued for some real money! (the idea is that if your DB gets hacked and password table stolen the attackers will have both username and password in plain text and, if passwords are recycled by your users, they will try them on paypall or amazon and steal money off them).

                        Use a hash and salt algorithm (SHA3 512 recommended).

                        An "entertaining" explanation can be found here: https://www.youtube.com/watch?v=8ZtInClXe1Q

                        "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
                        ~Napoleon Bonaparte

                        On a crusade to banish setIndexWidget() from the holy land of Qt

                        1 Reply Last reply
                        3

                        2/11

                        17 Sept 2016, 21:20

                        topic:navigator.unread, 9
                        • Login

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