Login plugin in construct2

Discussion and feedback on Construct 2

Post » Thu Nov 14, 2013 5:25 am

Seems like there is no Login plugin for construct2 as there is one in Game maker. Correct me if wrong .

but seriously it's high time construct comes with in built tools for login. the database connectivity with AJAX works smoothly. Why not a login plugin.

Although we can make (but am still fighting) to make the login work through AJAX object..it's still a huge task..plus there is no way to protect it from SQLite injection attack

thanks
Karthikeyan P
B
7
S
2
Posts: 21
Reputation: 841

Post » Thu Nov 14, 2013 11:09 am

Use the Hash plugin instead of Array plugin, this works much smoother with json objects.

You don't need to do anything against sql injections, do that in your backend and everything is fine.

Currently C2 grants you everything you need to make a great Login system (Eg Webstorage to save sessions)
B
15
S
6
G
6
Posts: 512
Reputation: 5,555

Post » Thu Nov 14, 2013 11:12 am

Because there needs to be a server backend running a database to handle logins, which you can't ship along with a client-side javascript game.

It shouldn't be too difficult with the AJAX plugin!Ashley2013-11-14 11:13:17
Scirra Founder
B
403
S
238
G
89
Posts: 24,654
Reputation: 196,155

Post » Mon Nov 18, 2013 11:28 am

@darklinki Cool Yeah I did that in the backend now...everything's working perfect...

Just one thing.AJAX object doesn't seem to be working with the BUTTON object of construct2.

rest i figured out everything...will post a complete tutorial soon..
with pitfalls to avoid that can get u stuck on login screen in construct2
B
7
S
2
Posts: 21
Reputation: 841

Post » Mon Nov 18, 2013 11:29 am

@ashley I managed with AJAX plugin..thanks :)
B
7
S
2
Posts: 21
Reputation: 841

Post » Wed Nov 20, 2013 6:21 am

@pinastroReal everything fine now ? Or do you need any further help ?
B
15
S
6
G
6
Posts: 512
Reputation: 5,555

Post » Thu Nov 21, 2013 6:25 am

Everything good and fine. Made it work. but the requirement from my boss changed ;p

no login required for the game now :)
but the lesson learnt in login
B
7
S
2
Posts: 21
Reputation: 841


Return to Construct 2 General

Who is online

Users browsing this forum: wizdigitech and 14 guests