-
-
Notifications
You must be signed in to change notification settings - Fork 12
Authentication #35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: authentication
Are you sure you want to change the base?
Authentication #35
Changes from 1 commit
0082ff2
7350bb9
2f3186c
e9924ff
468d0b8
201b43b
d501b04
82ef752
9b9dd9d
e45c2f0
a674cd8
a3d2e3b
9d5fa57
5468629
a3b80bb
9e06004
f203854
a47ff6d
1033232
79dac98
dad0c79
58778b1
99bfab5
61d73c4
7ebd8cb
9bb5411
a00330c
12fdf7a
4d92ab4
6c8c04b
734aef9
367199d
526dd14
4994779
038e434
19cc63d
f1b2a7e
9b71f18
e59e645
da43b6a
684e378
0f799f5
31cae9b
ea6ac4c
6c63921
ad14227
85a8929
be95a6e
e2f7479
3fb5331
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -61,6 +61,9 @@ def signup(request): | |
| business = Business(user=user) | ||
| business.save() | ||
|
|
||
| # Create Plan | ||
| plan = Plan(name="testplan", description="test_description",duration_days=10,price=500.00,max_staff=10,max_branch=4) | ||
| plan.save() | ||
| # create BusinessTeamMember | ||
| business_team = BusinessTeamMember.objects.get_or_create( | ||
| business=business, user=user) | ||
|
|
@@ -69,13 +72,14 @@ def signup(request): | |
| ends_time = timezone.now() + timedelta(days=14) | ||
|
|
||
| subscription = Subscription.objects.get_or_create( | ||
| plan_id=1, | ||
| plan=plan, | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When the new user signup on the system, the free subscription should be create automatic for that user and free subscription, is linked by plan created by system admin |
||
| business=business, | ||
| start_time=timezone.now(), | ||
| ends_time=ends_time, | ||
| is_active=True, | ||
| ) | ||
|
|
||
| # import pdb | ||
| # pdb.set_trace() | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This comment has no meaning |
||
| # send confirmation email | ||
| token = account_activation_token.make_token(user) | ||
| user_id = urlsafe_base64_encode(force_bytes(user.id)) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The plan should be created by the Site Administrator prior to system usage, They should create the plan and set the price they want.