I have a javascript/php app and i want to do something that let only users view my app. I am thinking of webpage like gate and user should insert username & password then log in and use the app. but i have no idea how to do it. or if there is a better idea.
There's tons of tutorials out there on how to do this, here's one login system with a bit of pizazz.
Related
I'm creating my own social network and I've made an authentification server in JavaScript, with Json Web Tokens. Now, I want to integrate the Snapchat Login Kitto my app but it gives a token and it makes what I have made.
So that is my question : how can I use the Snapchat Login Kit to create a real account with my API and to allow the user to login with this?
Thanks
I would recommend server tools like firebase, Parse, Back4app, and many others that have the ability to create a user with multiple platforms with like Google, Facebook and many others. Personally, it might be best if you don't use snapchat because of the fact that a lot of people don't have snapchat and their credentials are hard to remember when you are not having to log into the app for a long time so the user might be asked to put in their password that they do not remember.
please I need some help. I developed a mobile app for a client. Within the app, users can purchase video courses that they can watch. But my challenge now is that when a user buys a course, if he refreshes the app and comes back to the course, he's taken back to the payment page of that same course he already paid for, instead of being taken to the course. I have been trying to figure out a way to solve this, I don't know if anyone can help me. The app is built on HTML5. I don't know if anyone has a Learning Management System Code or something like that, that's based on HTML that can resolve this. Or better still, I appreciate if you can help me figure this out in anyway. Thanks
A solid way to achieve this is to store the values in a database with a unique ID, and perform an AJAX call when you load the app to see who has payed for which parts of the app. You can create a simple API to write all approved transactions to, and perform a GET request on that API to check if the current user has any purchased items.
If you use something like cookies, or even local storage, the data can be wiped relatively easily, and it will be hard or even impossible to track who has and hasn't payed for what.
I have some like gate js code that is checking if a user is logged in, and likes a particular page. If they like the page they view one html, if they don't they get another html page. It works for me, however I have two other testers who it doesn't work for. However when I log into my facebook account on their computers the like gate works. Can you tell me if facebook caches pages for individual accounts? Or direct me to the proper answers as to why this is happening? Please not my company is ROR shop so we cannot use any other server-side language like php for a solution. Thank you in advance.
Maybe, the administrator user get's through the gate but not other users they get stuck in the not like section.
I need to create a login javascript which I can save as a bookmark in my bookmarks toolbar in the browser and when I run it.. It should log me into my web application which is set up locally for my development purposes.
The idea is basically to remove the hassle to enter username and password repeatedly for logging into the web app for testing etc..
We had this done previously by some one in my last workplace, but just want to do it myself now.
You do better when you use COOKIES.
But if you want so, then construct link like:
javascript:location.href='http://my_host/my_system?autoLogin=1&username=USERNAME&password=PASSWORD'
Hope this is what you want but you need to optimize your system to be able to parse link like this.
Also I suggest using hashed (1-way encrypted) password.
I am creating facebook integrated asp.net web application.I am getting the friends of
logged in user in a grid. I also have the profile pic of the friends. Now i want that
clicking on the pic of a friend should display friends of that friends
(lets say, logged in user is ABC. And he has two friends xyz and def. Now i want that
clicking on the pic of xyz should display the friends of xyz in the same grid.
Can anyone provide me javascript for that or is there any other way?
Any help is appreciated.
Thanks,
Isha.
You cant do this. You can not get a list of friends of a friend of the user that authenticated the application. That's a mouthful! :P let me try simplify -
Lets say you authenticate an application - and allow that application to view your friend list. For the sake of this example let us say that I am in your friend list - and the application has now found me to be a friend of yours. The application can not see MY friend list because I have not authenticated the application. This is an issue of privacy and it is simple not possible with the facebook API (and shouldn't be possible)
There are two problems about that:
1- Facebook see that behaviour like spam and in his politics is prohibited to do that.
2- To see your friendos, the aplication needs permissions like user_friends, and if i am not autenticated with the app, it cant get my access token and cant ask for this permisions, so the app cant look my friends.
Another tip is that there is not a good idea to make a questions saying what you want and asking for the solution like
"Can anyone provide me javascript for that or is there any other way?"
Is better if you expose what you did, the comunity correct your errors and we camo to a solution...