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)

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.
  • M4RZB4NiM Offline
    M4RZB4NiM Offline
    M4RZB4Ni
    wrote on 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
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on 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

      M4RZB4NiM 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

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

        M4RZB4NiM Offline
        M4RZB4NiM Offline
        M4RZB4Ni
        wrote on 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
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on 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

          M4RZB4NiM 1 Reply Last reply
          0
          • SGaistS SGaist

            Then what exactly are you missing to go further ?

            M4RZB4NiM Offline
            M4RZB4NiM Offline
            M4RZB4Ni
            wrote on 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
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on 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

              M4RZB4NiM 1 Reply Last reply
              0
              • SGaistS SGaist

                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.

                M4RZB4NiM Offline
                M4RZB4NiM Offline
                M4RZB4Ni
                wrote on 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 VRoninV 2 Replies Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 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
                  • VRoninV Offline
                    VRoninV Offline
                    VRonin
                    wrote on 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
                    • M4RZB4NiM M4RZB4Ni

                      @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 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
                      • M4RZB4NiM M4RZB4Ni

                        @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?

                        VRoninV Offline
                        VRoninV Offline
                        VRonin
                        wrote on 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

                        • Login

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