Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Mobile Development
  3. Android
  4. How to check username and password??

How to check username and password??

Scheduled Pinned Locked Moved Android
questiontutorial
3 Posts 3 Posters 11 Views 1 Watching
  • 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
    Member_15026402
    wrote on last edited by
    #1

    [{"UserId":"1","Usercode":"ADMIN","Password":"123"},
    {"UserId":"2","Usercode":"Ravi","Password":"ravi"}]

    I have one question if I want to login with both user code and password which logic I should apply.

    L M 2 Replies Last reply
    0
    • M Member_15026402

      [{"UserId":"1","Usercode":"ADMIN","Password":"123"},
      {"UserId":"2","Usercode":"Ravi","Password":"ravi"}]

      I have one question if I want to login with both user code and password which logic I should apply.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      It depends what site/system you are logging in to. And in either case you should never store userids and passwords in clear text like that.

      1 Reply Last reply
      0
      • M Member_15026402

        [{"UserId":"1","Usercode":"ADMIN","Password":"123"},
        {"UserId":"2","Usercode":"Ravi","Password":"ravi"}]

        I have one question if I want to login with both user code and password which logic I should apply.

        M Offline
        M Offline
        Mycroft Holmes
        wrote on last edited by
        #3

        For a start UserID will not be available to the user so should be eliminated from that data set. First check the user code exists, then check that the HASHED password matches the HASHED password stored in your database for that user code. There are a number of articles on CP showing how to do password security properly.

        Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups