- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In my app i am developing, i am trying to add a page that asks for a administrator login name, and password. There will only be 1 admin, and i just want to make it possible for the admin to be able to securely login and upload files to the app for the other users to be able to see them. Im not sure how to go about doing this. I am trying to build my knowledge on this system, and I'm novice in programming and am also trying to increase my knowledge in that area as well. Unfortunately time is against me. Any help will be greatly appreciated.
- Tags:
- HTML5
- Intel® XDK
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Jamoris,
A really simple way to do that is to create an admin login screen that can be directed from some page in your app. That page can get the admin login and pwd information and validate it. The tricky part is how it can be done securely. You want to avoid doing any validation on the client side. Take a look at this article on tips to keeping your secrets (like admin pwd) out of your code: http://developer.telerik.com/featured/securing-phonegapcordova-hybrid-mobile-app/
You can create this login form using app designer controls. On successful login, redirect the user to a page that allows file uploads. You can use the Cordova file plugin to do that: https://github.com/apache/cordova-plugin-file-transfer.
There is plenty of javascript sample code for form creation and validation available online.
Hope this helps.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page