One Favor

23 views
Skip to first unread message

Ketan Thakkar

unread,
Mar 6, 2016, 1:16:20 PM3/6/16
to uFlex
I want only registered user can add new user.
so, where do i need to change.
plz, help me

Pablo

unread,
Mar 6, 2016, 2:48:06 PM3/6/16
to uFlex
Hey,

Sounds like you should just check if a user is already signed in before calling the register method for a new user.

Ketan Thakkar

unread,
Mar 7, 2016, 2:00:03 AM3/7/16
to uFlex
Hello,

Thanks For Reply.

See what i want.
I make some changes in your script.
there are three group by default in uFlex System
1. User
2. Developer
3. Designer

What i consider in custom uFlex System.
1. Admin
2. User

so, 
I want concept of, any visitor can not register themselves.if any user directly goes to demo/register then he/she will redirect to login. and get message you cant register yourself.
Only Admin can add a user.
I had make some changes in script.
Now, admin can add new users.
but In that case data inserted properly in mysql users table.but not all fields are inserted.
when any user registered than RegData field will be inserted. and it is used to decrypt password.
but in my case, in custome script,
If admin add user than Regdata will inserted 0, so, user will unable to login.

I hope you can understand what i said.

Best Regards, 

Pablo Tejada

unread,
Mar 7, 2016, 8:09:40 AM3/7/16
to uFlex

Hey,
Are you using User::manageUser() to register users?

Please provide the code you are using to register a new user.


--
Project's home page http://ptejada.com/projects/uFlex/
---
You received this message because you are subscribed to the Google Groups "uFlex" group.
To unsubscribe from this group and stop receiving emails from it, send an email to uflex+un...@googlegroups.com.
To post to this group, send email to uf...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/uflex/6b8b10dc-e3b8-4180-82d6-3700ec3221cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--

Sincerely,

Pablo Tejada

From Mobile

Ketan Thakkar

unread,
Mar 7, 2016, 11:16:30 AM3/7/16
to uFlex
I had attached zip which is as same as fresh uFlex Script.

Main Changes which i had made are : 
1) src/Users.php : line 357 to line 362 are commented.
2) demo/page/register.php : 2nd line code has changed little bit.

Best Regards, 
um1.zip

Pablo Tejada

unread,
Mar 7, 2016, 2:42:12 PM3/7/16
to uFlex

Hey,

I wont be able to review the code until maybe the second half of the day.

I suggest reverting the changes to src/User.php review the following ticket in GitHub

https://github.com/ptejada/uFlex/issues/25


--
Project's home page http://ptejada.com/projects/uFlex/
---
You received this message because you are subscribed to the Google Groups "uFlex" group.
To unsubscribe from this group and stop receiving emails from it, send an email to uflex+un...@googlegroups.com.
To post to this group, send email to uf...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages