-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path4939.html
732 lines (730 loc) · 45.8 KB
/
4939.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
<!DOCTYPE html>
<html lang="he">
<!-- Mirrored from forums.pythonic.guru/t/2-0/4939 by HTTrack Website Copier/3.x [XR&CO'2014], Sun, 17 Sep 2023 02:47:38 GMT -->
<!-- Added by HTTrack --><meta content="text/html;charset=utf-8" http-equiv="content-type"/><!-- /Added by HTTrack -->
<head>
<meta charset="utf-8"/>
<title>בנק 2.0 - מערכת הזדהות - שבוע 3 - פייתון בעברית ובחינם</title>
<meta content="הפונקציה authenticate מקבלת רק שם משתמש וסיסמה, ולא מקבלת את מספר הנסיונות. האם היא מבחינתי רק פונקציית עזר כדי לבצע את התרגיל?
אם כן אז הדוגמאות שניתנות בחלק הזה של התרגיל מבלבלות, כי זה נראה כאילו הפונקציה authenticat&hellip;" name="description"/>
<meta content="Discourse 3.2.0.beta2-dev - https://github.com/discourse/discourse version ebe68e15fce9c2fc2c67628ce4a9b24284c09b80" name="generator"/>
<link href="../../uploads/default/optimized/1X/49c4c7d93c7e73a9a15013cfae1d89084c9ba521_2_32x32.jpg" rel="icon" type="image/png"/>
<link href="../../uploads/default/optimized/1X/49c4c7d93c7e73a9a15013cfae1d89084c9ba521_2_180x180.jpg" rel="apple-touch-icon" type="image/png"/>
<meta content="#ffffff" media="all" name="theme-color"/>
<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, user-scalable=yes, viewport-fit=cover" name="viewport"/>
<link href="4939.html" rel="canonical"/>
<link href="../../opensearch.xml" rel="search" title="פייתון בעברית ובחינם Search" type="application/opensearchdescription+xml"/>
<link class="light-scheme" href="../../stylesheets/color_definitions_scheme_2_3_4eaabccdb423ebdd5fde62bb8c929b7912b0ba33.css_%3b%20filename_%3dUTF-8%27%27color_definitions_scheme_2_3_4eaabccdb423ebdd5fde62bb8c929b7912b0ba337939.css?__ws=forums.pythonic.guru" media="all" rel="stylesheet"/>
<link data-target="desktop_rtl" href="../../stylesheets/desktop_rtl_010e86cdc443c6a22fa77214fa3fc0bf2f3542ce.css_%3b%20filename_%3dUTF-8%27%27desktop_rtl_010e86cdc443c6a22fa77214fa3fc0bf2f3542ce7939.css?__ws=forums.pythonic.guru" media="all" rel="stylesheet"/>
<link data-target="checklist_rtl" href="../../stylesheets/checklist_rtl_010e86cdc443c6a22fa77214fa3fc0bf2f3542ce.css_%3b%20filename_%3dUTF-8%27%27checklist_rtl_010e86cdc443c6a22fa77214fa3fc0bf2f3542ce7939.css?__ws=forums.pythonic.guru" media="all" rel="stylesheet"/>
<link data-target="discourse-cakeday_rtl" href="../../stylesheets/discourse-cakeday_rtl_010e86cdc443c6a22fa77214fa3fc0bf2f3542ce.css_%3b%20filename_%3dUTF-8%27%27discourse-cakeday_rtl_010e86cdc443c6a22fa77214fa3fc0bf2f3542ce7939.css?__ws=forums.pythonic.guru" media="all" rel="stylesheet"/>
<link data-target="discourse-calendar_rtl" href="../../stylesheets/discourse-calendar_rtl_010e86cdc443c6a22fa77214fa3fc0bf2f3542ce.css_%3b%20filename_%3dUTF-8%27%27discourse-calendar_rtl_010e86cdc443c6a22fa77214fa3fc0bf2f3542ce7939.css?__ws=forums.pythonic.guru" media="all" rel="stylesheet"/>
<link data-target="discourse-details_rtl" href="../../stylesheets/discourse-details_rtl_010e86cdc443c6a22fa77214fa3fc0bf2f3542ce.css_%3b%20filename_%3dUTF-8%27%27discourse-details_rtl_010e86cdc443c6a22fa77214fa3fc0bf2f3542ce7939.css?__ws=forums.pythonic.guru" media="all" rel="stylesheet"/>
<link data-target="discourse-lazy-videos_rtl" href="../../stylesheets/discourse-lazy-videos_rtl_010e86cdc443c6a22fa77214fa3fc0bf2f3542ce.css_%3b%20filename_%3dUTF-8%27%27discourse-lazy-videos_rtl_010e86cdc443c6a22fa77214fa3fc0bf2f3542ce7939.css?__ws=forums.pythonic.guru" media="all" rel="stylesheet"/>
<link data-target="discourse-local-dates_rtl" href="../../stylesheets/discourse-local-dates_rtl_010e86cdc443c6a22fa77214fa3fc0bf2f3542ce.css_%3b%20filename_%3dUTF-8%27%27discourse-local-dates_rtl_010e86cdc443c6a22fa77214fa3fc0bf2f3542ce7939.css?__ws=forums.pythonic.guru" media="all" rel="stylesheet"/>
<link data-target="discourse-math_rtl" href="../../stylesheets/discourse-math_rtl_010e86cdc443c6a22fa77214fa3fc0bf2f3542ce.css_%3b%20filename_%3dUTF-8%27%27discourse-math_rtl_010e86cdc443c6a22fa77214fa3fc0bf2f3542ce7939.css?__ws=forums.pythonic.guru" media="all" rel="stylesheet"/>
<link data-target="discourse-narrative-bot_rtl" href="../../stylesheets/discourse-narrative-bot_rtl_010e86cdc443c6a22fa77214fa3fc0bf2f3542ce.css_%3b%20filename_%3dUTF-8%27%27discourse-narrative-bot_rtl_010e86cdc443c6a22fa77214fa3fc0bf2f3542ce7939.css?__ws=forums.pythonic.guru" media="all" rel="stylesheet"/>
<link data-target="discourse-presence_rtl" href="../../stylesheets/discourse-presence_rtl_010e86cdc443c6a22fa77214fa3fc0bf2f3542ce.css_%3b%20filename_%3dUTF-8%27%27discourse-presence_rtl_010e86cdc443c6a22fa77214fa3fc0bf2f3542ce7939.css?__ws=forums.pythonic.guru" media="all" rel="stylesheet"/>
<link data-target="discourse-solved_rtl" href="../../stylesheets/discourse-solved_rtl_010e86cdc443c6a22fa77214fa3fc0bf2f3542ce.css_%3b%20filename_%3dUTF-8%27%27discourse-solved_rtl_010e86cdc443c6a22fa77214fa3fc0bf2f3542ce7939.css?__ws=forums.pythonic.guru" media="all" rel="stylesheet"/>
<link data-target="discourse-tooltips_rtl" href="../../stylesheets/discourse-tooltips_rtl_010e86cdc443c6a22fa77214fa3fc0bf2f3542ce.css_%3b%20filename_%3dUTF-8%27%27discourse-tooltips_rtl_010e86cdc443c6a22fa77214fa3fc0bf2f3542ce7939.css?__ws=forums.pythonic.guru" media="all" rel="stylesheet"/>
<link data-target="docker_manager_rtl" href="../../stylesheets/docker_manager_rtl_010e86cdc443c6a22fa77214fa3fc0bf2f3542ce.css_%3b%20filename_%3dUTF-8%27%27docker_manager_rtl_010e86cdc443c6a22fa77214fa3fc0bf2f3542ce7939.css?__ws=forums.pythonic.guru" media="all" rel="stylesheet"/>
<link data-target="poll_rtl" href="../../stylesheets/poll_rtl_010e86cdc443c6a22fa77214fa3fc0bf2f3542ce.css_%3b%20filename_%3dUTF-8%27%27poll_rtl_010e86cdc443c6a22fa77214fa3fc0bf2f3542ce7939.css?__ws=forums.pythonic.guru" media="all" rel="stylesheet"/>
<link data-target="discourse-calendar_desktop_rtl" href="../../stylesheets/discourse-calendar_desktop_rtl_010e86cdc443c6a22fa77214fa3fc0bf2f3542ce.css_%3b%20filename_%3dUTF-8%27%27discourse-calendar_desktop_rtl_010e86cdc443c6a22fa77214fa3fc0bf2f3542ce7939.css?__ws=forums.pythonic.guru" media="all" rel="stylesheet"/>
<link data-target="poll_desktop_rtl" href="../../stylesheets/poll_desktop_rtl_010e86cdc443c6a22fa77214fa3fc0bf2f3542ce.css_%3b%20filename_%3dUTF-8%27%27poll_desktop_rtl_010e86cdc443c6a22fa77214fa3fc0bf2f3542ce7939.css?__ws=forums.pythonic.guru" media="all" rel="stylesheet"/>
<link data-target="desktop_theme" data-theme-id="3" data-theme-name="בהיר" href="../../stylesheets/desktop_theme_3_32d9a33a83c213d82cb6da72bd3eb36192a74400.css_%3b%20filename_%3dUTF-8%27%27desktop_theme_3_32d9a33a83c213d82cb6da72bd3eb36192a744007939.css?__ws=forums.pythonic.guru" media="all" rel="stylesheet"/>
<link href="4939.rss" rel="alternate nofollow" title="הזנת RSS של ‚בנק 2.0 - מערכת הזדהות’" type="application/rss+xml"/>
<meta content="פייתון בעברית ובחינם" property="og:site_name"/>
<meta content="website" property="og:type"/>
<meta content="summary" name="twitter:card"/>
<meta content="../../uploads/default/original/1X/49c4c7d93c7e73a9a15013cfae1d89084c9ba521.jpg" name="twitter:image"/>
<meta content="../../uploads/default/original/1X/49c4c7d93c7e73a9a15013cfae1d89084c9ba521.jpg" property="og:image"/>
<meta content="4939.html" property="og:url"/>
<meta content="4939.html" name="twitter:url"/>
<meta content="בנק 2.0 - מערכת הזדהות" property="og:title"/>
<meta content="בנק 2.0 - מערכת הזדהות" name="twitter:title"/>
<meta content="הפונקציה authenticate מקבלת רק שם משתמש וסיסמה, ולא מקבלת את מספר הנסיונות. האם היא מבחינתי רק פונקציית עזר כדי לבצע את התרגיל? אם כן אז הדוגמאות שניתנות בחלק הזה של התרגיל מבלבלות, כי זה נראה כאילו הפונקציה authenticate יודעת גם באיזה מספר ניסיון אנחנו." property="og:description"/>
<meta content="הפונקציה authenticate מקבלת רק שם משתמש וסיסמה, ולא מקבלת את מספר הנסיונות. האם היא מבחינתי רק פונקציית עזר כדי לבצע את התרגיל? אם כן אז הדוגמאות שניתנות בחלק הזה של התרגיל מבלבלות, כי זה נראה כאילו הפונקציה authenticate יודעת גם באיזה מספר ניסיון אנחנו." name="twitter:description"/>
<meta content="הקורס הפתוח" property="og:article:section"/>
<meta content="0088CC" property="og:article:section:color"/>
<meta content="שבוע 3" property="og:article:section"/>
<meta content="0088CC" property="og:article:section:color"/>
<meta content="ביאור-תרגילים" property="og:article:tag"/>
<meta content="מערכת-הבנק-2" property="og:article:tag"/>
<meta name="twitter:label1" value="זמן קריאה"/>
<meta name="twitter:data1" value="5 mins 🕑"/>
<meta name="twitter:label2" value="לייקים"/>
<meta name="twitter:data2" value="18 ❤"/>
<meta content="2020-04-17T19:18:50+00:00" property="article:published_time"/>
<meta content="true" property="og:ignore_canonical"/>
<link href="49394658.html?page=2" rel="next"/>
</head>
<body class="">
<header class="d-header">
<div class="wrap content">
<div class="title">
<a data-auto-route="true" href="/index.html">
<img alt="פייתון בעברית ובחינם" class="logo-big" id="site-logo" src="/uploads/default/original/1X/3c7e2ccc77e214fb4e38daa421f1b8878a5677f9.jpg"/>
</a>
<div class="before-header-panel-outlet"></div>
<div class="panel" role="navigation">
<span class="header-buttons"></span>
<ul class="icons d-header-icons">
<!-- More to come? -->
</ul>
</div>
</div>
</div></header>
<div class="wrap" id="main-outlet" role="main">
<div id="topic-title">
<h1>
<a href="4939.html">בנק 2.0 - מערכת הזדהות</a>
</h1>
<div class="topic-category" itemscope="" itemtype="http://schema.org/BreadcrumbList">
<span itemprop="itemListElement" itemscope="" itemtype="http://schema.org/ListItem">
<a class="badge-wrapper bullet" href="../../c/old/20.html" itemprop="item">
<span class="badge-category-bg" style="background-color: #0088CC"></span>
<span class="badge-category clear-badge">
<span class="category-name" itemprop="name">הקורס הפתוח</span>
</span>
</a>
<meta content="1" itemprop="position"/>
</span>
<span itemprop="itemListElement" itemscope="" itemtype="http://schema.org/ListItem">
<a class="badge-wrapper bullet" href="../../c/old/10-category/10.html" itemprop="item">
<span class="badge-category-bg" style="background-color: #0088CC"></span>
<span class="badge-category clear-badge">
<span class="category-name" itemprop="name">שבוע 3</span>
</span>
</a>
<meta content="2" itemprop="position"/>
</span>
</div>
<div class="topic-category">
<div class="discourse-tags list-tags"><span class="tags-string">תגיות: </span>
<a class="discourse-tag" href="../../tag/%d7%91%d7%99%d7%90%d7%95%d7%a8-%d7%aa%d7%a8%d7%92%d7%99%d7%9c%d7%99%d7%9d.html" rel="tag">ביאור-תרגילים</a>,
<a class="discourse-tag" href="../../tag/%d7%9e%d7%a2%d7%a8%d7%9b%d7%aa-%d7%94%d7%91%d7%a0%d7%a7-2.html" rel="tag">מערכת-הבנק-2</a>
</div>
</div>
</div>
<div itemscope="" itemtype="http://schema.org/DiscussionForumPosting">
<meta content="בנק 2.0 - מערכת הזדהות" itemprop="headline"/>
<meta content="שבוע 3" itemprop="articleSection"/>
<meta content="ביאור-תרגילים, מערכת-הבנק-2" itemprop="keywords"/>
<div itemprop="publisher" itemscope="" itemtype="http://schema.org/Organization">
<meta content="פייתון בעברית ובחינם" itemprop="name"/>
<div itemprop="logo" itemscope="" itemtype="http://schema.org/ImageObject">
<meta content="../../uploads/default/original/1X/3c7e2ccc77e214fb4e38daa421f1b8878a5677f9.jpg" itemprop="url"/>
</div>
</div>
<div class="topic-body crawler-post" id="post_1">
<div class="crawler-post-meta">
<span class="creator" itemprop="author" itemscope="" itemtype="http://schema.org/Person">
<span itemprop="name">rom.baratz</span>
</span>
<link href="4939.html" itemprop="mainEntityOfPage"/>
<span class="crawler-post-infos">
<time class="post-time" datetime="2020-04-17T19:18:50Z" itemprop="datePublished">
17 באפריל, 2020, 7:18pm
</time>
<meta content="2021-09-08T12:47:33Z" itemprop="dateModified"/>
</span>
</div>
<div class="post" itemprop="articleBody">
<p>הפונקציה authenticate מקבלת רק שם משתמש וסיסמה, ולא מקבלת את מספר הנסיונות. האם היא מבחינתי רק פונקציית עזר כדי לבצע את התרגיל?<br/>
אם כן אז הדוגמאות שניתנות בחלק הזה של התרגיל מבלבלות, כי זה נראה כאילו הפונקציה authenticate יודעת גם באיזה מספר ניסיון אנחנו.</p>
</div>
<div itemprop="interactionStatistic" itemscope="" itemtype="http://schema.org/InteractionCounter">
<meta content="http://schema.org/LikeAction" itemprop="interactionType"/>
<meta content="0" itemprop="userInteractionCount"/>
<span class="post-likes"></span>
</div>
<div itemprop="interactionStatistic" itemscope="" itemtype="http://schema.org/InteractionCounter">
<meta content="http://schema.org/CommentAction" itemprop="interactionType"/>
<meta content="0" itemprop="userInteractionCount"/>
</div>
</div>
<div class="topic-body crawler-post" id="post_2" itemprop="comment" itemscope="" itemtype="http://schema.org/Comment">
<div class="crawler-post-meta">
<span class="creator" itemprop="author" itemscope="" itemtype="http://schema.org/Person">
<span itemprop="name">Hagay2k7</span>
</span>
<link href="4939.html" itemprop="mainEntityOfPage"/>
<link href="../../uploads/default/original/2X/0/0b2c8c8d9ec6fcff060d9607cceaafd9f86a1604.png" itemprop="image"/>
<span class="crawler-post-infos">
<time class="post-time" datetime="2020-04-18T06:23:13Z" itemprop="datePublished">
18 באפריל, 2020, 6:23am
</time>
<meta content="2020-04-18T06:23:13Z" itemprop="dateModified"/>
</span>
</div>
<div class="post" itemprop="text">
<p>רשום במפורש שהיא מחזירה True אם הנסיון הצליח, ואם הנסיון נכשל היא מחזירה False.<br/>
<img alt="image" data-base62-sha1="1AQHhhuMPeeVcTknMzEQalLp2ZK" height="60" src="../../uploads/default/original/2X/0/0b2c8c8d9ec6fcff060d9607cceaafd9f86a1604.png" width="376"/></p>
<p>מה שבאמת מבלבל, זה שאם אני קורא לה מהתוכנית הראשית כביכול, ושם מבצע ספירת נסיונות, אז אם אני מקבל ממנה ערך של False, אני לא יודע אם ה-False הוחזר אליי כי המשתמש לא נמצא, או כי הוא הזין סיסמא לא נכונה.</p>
<p>בגלל זה התרגיל מבלבל…</p>
<p>אשמח לתשובות ממנהלי הקורס, לקבל קצת יותר סדר לגבי הפונקציה הזו.<br/>
<span class_="mention">@Yam</span><br/>
תודה,<br/>
חגי</p>
</div>
<div itemprop="interactionStatistic" itemscope="" itemtype="http://schema.org/InteractionCounter">
<meta content="http://schema.org/LikeAction" itemprop="interactionType"/>
<meta content="0" itemprop="userInteractionCount"/>
<span class="post-likes"></span>
</div>
<div itemprop="interactionStatistic" itemscope="" itemtype="http://schema.org/InteractionCounter">
<meta content="http://schema.org/CommentAction" itemprop="interactionType"/>
<meta content="1" itemprop="userInteractionCount"/>
</div>
</div>
<div class="topic-body crawler-post" id="post_3" itemprop="comment" itemscope="" itemtype="http://schema.org/Comment">
<div class="crawler-post-meta">
<span class="creator" itemprop="author" itemscope="" itemtype="http://schema.org/Person">
<span itemprop="name">itamaraviv</span>
</span>
<link href="4939.html" itemprop="mainEntityOfPage"/>
<span class="crawler-post-infos">
<time class="post-time" datetime="2020-04-18T08:15:28Z" itemprop="datePublished">
18 באפריל, 2020, 8:15am
</time>
<meta content="2020-04-18T08:15:28Z" itemprop="dateModified"/>
</span>
</div>
<div class="post" itemprop="text">
<p>מה זה משנה אם השם משתמש נמצא או לא? אם הוא נמצא הוא עף מהבנק אחרי 3 ניסיונות כושלים, ואם לא אז תמשיך בהתנהגות הרגילה.<br/>
למען האמת זה מתחבר יופי עם איך שמערכת סבירה מתמודדת, המערכת לא אמורה בשום דרך להדליף לך אם משתמש קיים בה או לא (כאן זה כביכול יכתוב שהמשתמש עף מהבנק וככה אפשר לגרום נזק למישהו שאתה שונא, אבל בגדול מטרת המערכת כאן היא לתרגל אתכם בעבודה עם קבצים, פונקציות וכו ולא בכתיבת מערכות הזדהות, שלא דומה למה שמממשים כאן)</p>
<p>מה שאתם כן יכולים להניח זה שאם הוכנס שם משתמש מסוים ונעשו בו 2 טעויות, ולאחר מכן הוכנס אחר, אתם יכולים לאפס את מספר הניסיונות כשמוחלף שם המשתמש.</p>
<p>איתמר</p>
</div>
<div itemprop="interactionStatistic" itemscope="" itemtype="http://schema.org/InteractionCounter">
<meta content="http://schema.org/LikeAction" itemprop="interactionType"/>
<meta content="2" itemprop="userInteractionCount"/>
<span class="post-likes">2 לייקים</span>
</div>
<div itemprop="interactionStatistic" itemscope="" itemtype="http://schema.org/InteractionCounter">
<meta content="http://schema.org/CommentAction" itemprop="interactionType"/>
<meta content="3" itemprop="userInteractionCount"/>
</div>
</div>
<div class="topic-body crawler-post" id="post_4" itemprop="comment" itemscope="" itemtype="http://schema.org/Comment">
<div class="crawler-post-meta">
<span class="creator" itemprop="author" itemscope="" itemtype="http://schema.org/Person">
<span itemprop="name">Ellen</span>
</span>
<link href="4939.html" itemprop="mainEntityOfPage"/>
<span class="crawler-post-infos">
<time class="post-time" datetime="2020-04-18T08:24:04Z" itemprop="datePublished">
18 באפריל, 2020, 8:24am
</time>
<meta content="2020-04-18T08:24:04Z" itemprop="dateModified"/>
</span>
</div>
<div class="post" itemprop="text">
<p>מה שמבלבל פה זה שמצד אחד אתם מבקשים שהפונקציה auth תקבל שם משתמש וססמה, ומצד שני כתוב שהמשתמש צריך להזין אותה ו3 נסיונות וכו’.</p>
<p>השאלה - האם הפונקציה מקבלת את הקלט מהמשתמש וסופרת את מספר הנסניונות או שמה שעוטף אותה מקבלת את הקלט</p>
</div>
<div itemprop="interactionStatistic" itemscope="" itemtype="http://schema.org/InteractionCounter">
<meta content="http://schema.org/LikeAction" itemprop="interactionType"/>
<meta content="0" itemprop="userInteractionCount"/>
<span class="post-likes"></span>
</div>
<div itemprop="interactionStatistic" itemscope="" itemtype="http://schema.org/InteractionCounter">
<meta content="http://schema.org/CommentAction" itemprop="interactionType"/>
<meta content="0" itemprop="userInteractionCount"/>
</div>
</div>
<div class="topic-body crawler-post" id="post_5" itemprop="comment" itemscope="" itemtype="http://schema.org/Comment">
<div class="crawler-post-meta">
<span class="creator" itemprop="author" itemscope="" itemtype="http://schema.org/Person">
<span itemprop="name">Ellen</span>
</span>
<link href="4939.html" itemprop="mainEntityOfPage"/>
<span class="crawler-post-infos">
<time class="post-time" datetime="2020-04-18T08:37:02Z" itemprop="datePublished">
18 באפריל, 2020, 8:37am
</time>
<meta content="2020-04-18T08:37:02Z" itemprop="dateModified"/>
</span>
</div>
<div class="post" itemprop="text">
<p>אוקי קראתי שוב :</p>
<blockquote>
<p>אם הלקוח קיים, אך הסיסמה שהזין שגויה – יש ללקוח עוד 2 נסיונות להזין סיסמה נכונה.</p>
</blockquote>
<p>זה אומר שאי אפשר להחליף לקוח לכן לא רלוונטי לאפשר את מספר הפעמים</p>
</div>
<div itemprop="interactionStatistic" itemscope="" itemtype="http://schema.org/InteractionCounter">
<meta content="http://schema.org/LikeAction" itemprop="interactionType"/>
<meta content="0" itemprop="userInteractionCount"/>
<span class="post-likes"></span>
</div>
<div itemprop="interactionStatistic" itemscope="" itemtype="http://schema.org/InteractionCounter">
<meta content="http://schema.org/CommentAction" itemprop="interactionType"/>
<meta content="0" itemprop="userInteractionCount"/>
</div>
</div>
<div class="topic-body crawler-post" id="post_6" itemprop="comment" itemscope="" itemtype="http://schema.org/Comment">
<div class="crawler-post-meta">
<span class="creator" itemprop="author" itemscope="" itemtype="http://schema.org/Person">
<span itemprop="name">Felixmn</span>
</span>
<link href="4939.html" itemprop="mainEntityOfPage"/>
<span class="crawler-post-infos">
<time class="post-time" datetime="2020-04-19T09:35:42Z" itemprop="datePublished">
19 באפריל, 2020, 9:35am
</time>
<meta content="2020-04-19T09:35:42Z" itemprop="dateModified"/>
</span>
</div>
<div class="post" itemprop="text">
<p><span class_="mention">@itamaraviv</span></p>
<p>כמה שאלות הבהרה:</p>
<ol>
<li>כרגיל, מותר לכתוב פונקציות עזר בנוסף ל - authenticate עצמה ?</li>
<li>לאור הערה קודמת שלך:</li>
</ol>
<aside class="quote no-group" data-post="3" data-topic="4939" data-username="itamaraviv">
<div class="title">
<div class="quote-controls"></div>
<img alt="" class="avatar" height="20" src="../../user_avatar/forums.pythonic.guru/itamaraviv/40/162_2.jpg" width="20"/> itamaraviv:</div>
<blockquote>
<p>מה שאתם כן יכולים להניח זה שאם הוכנס שם משתמש מסוים ונעשו בו 2 טעויות, ולאחר מכן הוכנס אחר, אתם יכולים לאפס את מספר הניסיונות כשמוחלף שם המשתמש.</p>
</blockquote>
</aside>
<p>האם המצב הבא אפשרי ?</p>
<p>authenticate(‘FreddieMercury’, ‘ILoveQueen’)<br/>
Wrong password (1/3).</p>
<p>authenticate(‘FreddieMercury’, ‘LetItBe’)<br/>
Wrong password (2/3).</p>
<p>authenticate(‘Simba’, ‘ILoveNala’)<br/>
Welcome ‘Simba’.</p>
<p>authenticate(‘FreddieMercury’, ‘HeyJude’)<br/>
Wrong password (1/3).</p>
<p>כאשר קובץ הסיסמאות הנתון הוא כמו בדוגמה במחברת:</p>
<p>FreddieMercury:61875<br/>
BBKing:33471<br/>
DonaldDuck:17743<br/>
Simba:6362</p>
<p>ז"א קריאה ל-authenticate עם שם משתמש אחר מאפסת את כל הנסיונות עבור קריאה קודמת עם שם משתמש שונה? (תחת ההנחה שעם שם המשתמש הקודם לא עברנו את 3 הנסיונות המותרים)</p>
<p>תודה רבה!</p>
</div>
<div itemprop="interactionStatistic" itemscope="" itemtype="http://schema.org/InteractionCounter">
<meta content="http://schema.org/LikeAction" itemprop="interactionType"/>
<meta content="0" itemprop="userInteractionCount"/>
<span class="post-likes"></span>
</div>
<div itemprop="interactionStatistic" itemscope="" itemtype="http://schema.org/InteractionCounter">
<meta content="http://schema.org/CommentAction" itemprop="interactionType"/>
<meta content="1" itemprop="userInteractionCount"/>
</div>
</div>
<div class="topic-body crawler-post" id="post_7" itemprop="comment" itemscope="" itemtype="http://schema.org/Comment">
<div class="crawler-post-meta">
<span class="creator" itemprop="author" itemscope="" itemtype="http://schema.org/Person">
<span itemprop="name">itamaraviv</span>
</span>
<link href="4939.html" itemprop="mainEntityOfPage"/>
<span class="crawler-post-infos">
<time class="post-time" datetime="2020-04-19T10:16:41Z" itemprop="datePublished">
19 באפריל, 2020, 10:16am
</time>
<meta content="2020-04-19T10:16:41Z" itemprop="dateModified"/>
</span>
</div>
<div class="post" itemprop="text">
<p>התשובה היא כן, זה בדיוק מה שמתואר. לגבי הוספת פונקציות, תוסיף כמה שאתה רוצה אבל תראה שאתה לא מגזים.</p>
<p>איתמר</p>
</div>
<div itemprop="interactionStatistic" itemscope="" itemtype="http://schema.org/InteractionCounter">
<meta content="http://schema.org/LikeAction" itemprop="interactionType"/>
<meta content="0" itemprop="userInteractionCount"/>
<span class="post-likes"></span>
</div>
<div itemprop="interactionStatistic" itemscope="" itemtype="http://schema.org/InteractionCounter">
<meta content="http://schema.org/CommentAction" itemprop="interactionType"/>
<meta content="1" itemprop="userInteractionCount"/>
</div>
</div>
<div class="topic-body crawler-post" id="post_8" itemprop="comment" itemscope="" itemtype="http://schema.org/Comment">
<div class="crawler-post-meta">
<span class="creator" itemprop="author" itemscope="" itemtype="http://schema.org/Person">
<span itemprop="name">Felixmn</span>
</span>
<link href="4939.html" itemprop="mainEntityOfPage"/>
<span class="crawler-post-infos">
<time class="post-time" datetime="2020-04-19T10:21:53Z" itemprop="datePublished">
19 באפריל, 2020, 10:21am
</time>
<meta content="2020-04-19T10:32:30Z" itemprop="dateModified"/>
</span>
</div>
<div class="post" itemprop="text">
<p>אוקי <span class_="mention">@itamaraviv</span> אז זה מעלה עוד שאלות מבחינתי:</p>
<ol>
<li>
<p>ההדפסות המתוארות בדוגמה שלי כאן ובמחברת, הן הדפסות ש-authenticate עושה בנוסף ל- True/False שהיא מחזירה? או אלה הדפסות שמוצגות כתוצאה מפונ’ אחרת שמשתמשת בה?</p>
</li>
<li>
<p>האם במסגרת המטלה מותר לממש פונ’ אחרת המשתמשת ב authenticate, ושאותה פונ’ אחרת תמנה את מס’ הנסיונות שיש ללקוח להזין את הסיסמה?</p>
</li>
</ol>
</div>
<div itemprop="interactionStatistic" itemscope="" itemtype="http://schema.org/InteractionCounter">
<meta content="http://schema.org/LikeAction" itemprop="interactionType"/>
<meta content="0" itemprop="userInteractionCount"/>
<span class="post-likes"></span>
</div>
<div itemprop="interactionStatistic" itemscope="" itemtype="http://schema.org/InteractionCounter">
<meta content="http://schema.org/CommentAction" itemprop="interactionType"/>
<meta content="1" itemprop="userInteractionCount"/>
</div>
</div>
<div class="topic-body crawler-post" id="post_9" itemprop="comment" itemscope="" itemtype="http://schema.org/Comment">
<div class="crawler-post-meta">
<span class="creator" itemprop="author" itemscope="" itemtype="http://schema.org/Person">
<span itemprop="name">itamaraviv</span>
</span>
<link href="4939.html" itemprop="mainEntityOfPage"/>
<span class="crawler-post-infos">
<time class="post-time" datetime="2020-04-19T11:56:33Z" itemprop="datePublished">
19 באפריל, 2020, 11:56am
</time>
<meta content="2020-04-19T11:56:33Z" itemprop="dateModified"/>
</span>
</div>
<div class="post" itemprop="text">
<ol>
<li>תחשוב לבד איפה הגיוני שיהיו ההדפסות מבחינת מה ש-authenticate עושה.</li>
<li>הגבתי שמותר לך לממש פונקציות כאוות נפשך, רק תדאג להגיש את הכל ביחד</li>
</ol>
<p>איתמר</p>
</div>
<div itemprop="interactionStatistic" itemscope="" itemtype="http://schema.org/InteractionCounter">
<meta content="http://schema.org/LikeAction" itemprop="interactionType"/>
<meta content="0" itemprop="userInteractionCount"/>
<span class="post-likes"></span>
</div>
<div itemprop="interactionStatistic" itemscope="" itemtype="http://schema.org/InteractionCounter">
<meta content="http://schema.org/CommentAction" itemprop="interactionType"/>
<meta content="1" itemprop="userInteractionCount"/>
</div>
</div>
<div class="topic-body crawler-post" id="post_10" itemprop="comment" itemscope="" itemtype="http://schema.org/Comment">
<div class="crawler-post-meta">
<span class="creator" itemprop="author" itemscope="" itemtype="http://schema.org/Person">
<span itemprop="name">aviadamar</span>
</span>
<link href="4939.html" itemprop="mainEntityOfPage"/>
<span class="crawler-post-infos">
<time class="post-time" datetime="2020-04-19T13:50:51Z" itemprop="datePublished">
19 באפריל, 2020, 1:50pm
</time>
<meta content="2020-04-19T13:50:51Z" itemprop="dateModified"/>
</span>
</div>
<div class="post" itemprop="text">
<p>היי איתמר,</p>
<p>בגדול בשביל לעשות סדר בתהליך עשיתי<br/>
פונקציה אשר בודקת אם המשתמש בכלל קיים במערכת ורק אם כן היא נכנסת איתו<br/>
ללופ הזה של לבקש ממנו סיסמא עד 3 פעמים.</p>
<p>בעצם אני לא מבקש ממנו להכניס כל פעם משתמש וסיסמא מחדש ברגע ששם המשתמש היה נכון.<br/>
ואז האופציה שפליקס תאר פה של להכניס בפעם השלישית פתאום של משתמש אחר עם סיסמא נכונה<br/>
בכלל לא אפשריים אצלי.</p>
<p>האם זה קריטי לשנות את זה לכך שזה כך פעם מבקש ממנו גם את שתיהן ?</p>
</div>
<div itemprop="interactionStatistic" itemscope="" itemtype="http://schema.org/InteractionCounter">
<meta content="http://schema.org/LikeAction" itemprop="interactionType"/>
<meta content="0" itemprop="userInteractionCount"/>
<span class="post-likes"></span>
</div>
<div itemprop="interactionStatistic" itemscope="" itemtype="http://schema.org/InteractionCounter">
<meta content="http://schema.org/CommentAction" itemprop="interactionType"/>
<meta content="0" itemprop="userInteractionCount"/>
</div>
</div>
<div class="topic-body crawler-post" id="post_11" itemprop="comment" itemscope="" itemtype="http://schema.org/Comment">
<div class="crawler-post-meta">
<span class="creator" itemprop="author" itemscope="" itemtype="http://schema.org/Person">
<span itemprop="name">yosefco3</span>
</span>
<link href="4939.html" itemprop="mainEntityOfPage"/>
<span class="crawler-post-infos">
<time class="post-time" datetime="2020-04-19T14:38:26Z" itemprop="datePublished">
19 באפריל, 2020, 2:38pm
</time>
<meta content="2020-04-19T14:41:30Z" itemprop="dateModified"/>
</span>
</div>
<div class="post" itemprop="text">
<p>גם אני מימשתי את הפונקציה בלי פרמטרים שהיא מקבלת , וכל ה"אינפוטים" מתבצעים בתוך הפונקציה.<br/>
מבחינת תפקוד , מתפקדת כמצופה<br/>
כלומר :<br/>
( )authenticate.<br/>
ככה הרבה יותר הגיוני.<br/>
אם מחייבים להכניס אליה סיסמה ושם משתמש , אז צריכים להעביר אליה גם מספר נסיונות שעברו , כלומר פרמטר שלישי , ובכל מקרה זה לא יהיה המבנה המתואר בשאלה.</p>
</div>
<div itemprop="interactionStatistic" itemscope="" itemtype="http://schema.org/InteractionCounter">
<meta content="http://schema.org/LikeAction" itemprop="interactionType"/>
<meta content="0" itemprop="userInteractionCount"/>
<span class="post-likes"></span>
</div>
<div itemprop="interactionStatistic" itemscope="" itemtype="http://schema.org/InteractionCounter">
<meta content="http://schema.org/CommentAction" itemprop="interactionType"/>
<meta content="1" itemprop="userInteractionCount"/>
</div>
</div>
<div class="topic-body crawler-post" id="post_12" itemprop="comment" itemscope="" itemtype="http://schema.org/Comment">
<div class="crawler-post-meta">
<span class="creator" itemprop="author" itemscope="" itemtype="http://schema.org/Person">
<span itemprop="name">Felixmn</span>
</span>
<link href="4939.html" itemprop="mainEntityOfPage"/>
<span class="crawler-post-infos">
<time class="post-time" datetime="2020-04-19T14:44:11Z" itemprop="datePublished">
19 באפריל, 2020, 2:44pm
</time>
<meta content="2020-04-19T14:44:11Z" itemprop="dateModified"/>
</span>
</div>
<div class="post" itemprop="text">
<p>עדיין לא ירדתי למשמעות הסופית של התרגיל, אבל כאשר עבור הפונ’ authenticate מוגדר בשאלה ספציפית מה היא צריכה לקבל (שני פרמטרים) ומה היא צריכה להחזיר (ערך בוליאני), אז לשנות אחד מהדברים האלה למשהו שונה מההגדרה נשמע כמו לפתור שאלה אחרת ממה שהתבקש במטלה <img alt=":man_shrugging:" class="emoji" src="../../images/emoji/twitter/man_shruggingc164.png?v=9" title=":man_shrugging:"/></p>
</div>
<div itemprop="interactionStatistic" itemscope="" itemtype="http://schema.org/InteractionCounter">
<meta content="http://schema.org/LikeAction" itemprop="interactionType"/>
<meta content="0" itemprop="userInteractionCount"/>
<span class="post-likes"></span>
</div>
<div itemprop="interactionStatistic" itemscope="" itemtype="http://schema.org/InteractionCounter">
<meta content="http://schema.org/CommentAction" itemprop="interactionType"/>
<meta content="1" itemprop="userInteractionCount"/>
</div>
</div>
<div class="topic-body crawler-post" id="post_13" itemprop="comment" itemscope="" itemtype="http://schema.org/Comment">
<div class="crawler-post-meta">
<span class="creator" itemprop="author" itemscope="" itemtype="http://schema.org/Person">
<span itemprop="name">yosefco3</span>
</span>
<link href="4939.html" itemprop="mainEntityOfPage"/>
<span class="crawler-post-infos">
<time class="post-time" datetime="2020-04-19T14:45:14Z" itemprop="datePublished">
19 באפריל, 2020, 2:45pm
</time>
<meta content="2020-04-19T14:45:14Z" itemprop="dateModified"/>
</span>
</div>
<div class="post" itemprop="text">
<p>מה שביקשו במטלה לא הגיוני . הסברתי למה …<br/>
אם רוצים פונקציה שתמנה נסיונות , אז אתה לפחות צריך להעביר אליה עוד פרמטר.<br/>
אז בכל מקרה זה לא שני פרמטרים.</p>
</div>
<div itemprop="interactionStatistic" itemscope="" itemtype="http://schema.org/InteractionCounter">
<meta content="http://schema.org/LikeAction" itemprop="interactionType"/>
<meta content="0" itemprop="userInteractionCount"/>
<span class="post-likes"></span>
</div>
<div itemprop="interactionStatistic" itemscope="" itemtype="http://schema.org/InteractionCounter">
<meta content="http://schema.org/CommentAction" itemprop="interactionType"/>
<meta content="1" itemprop="userInteractionCount"/>
</div>
</div>
<div class="topic-body crawler-post" id="post_14" itemprop="comment" itemscope="" itemtype="http://schema.org/Comment">
<div class="crawler-post-meta">
<span class="creator" itemprop="author" itemscope="" itemtype="http://schema.org/Person">
<span itemprop="name">Felixmn</span>
</span>
<link href="4939.html" itemprop="mainEntityOfPage"/>
<span class="crawler-post-infos">
<time class="post-time" datetime="2020-04-19T14:46:31Z" itemprop="datePublished">
19 באפריל, 2020, 2:46pm
</time>
<meta content="2020-04-19T14:46:31Z" itemprop="dateModified"/>
</span>
</div>
<div class="post" itemprop="text">
<p>אני מבין אותך לחלוטין, לכן הלבטים שלי בנוגע לשאלה הזו, ולכן לא ברור לי עד הסוף ניסוח השאלה.</p>
</div>
<div itemprop="interactionStatistic" itemscope="" itemtype="http://schema.org/InteractionCounter">
<meta content="http://schema.org/LikeAction" itemprop="interactionType"/>
<meta content="0" itemprop="userInteractionCount"/>
<span class="post-likes"></span>
</div>
<div itemprop="interactionStatistic" itemscope="" itemtype="http://schema.org/InteractionCounter">
<meta content="http://schema.org/CommentAction" itemprop="interactionType"/>
<meta content="0" itemprop="userInteractionCount"/>
</div>
</div>
<div class="topic-body crawler-post" id="post_15" itemprop="comment" itemscope="" itemtype="http://schema.org/Comment">
<div class="crawler-post-meta">
<span class="creator" itemprop="author" itemscope="" itemtype="http://schema.org/Person">
<span itemprop="name">yosefco3</span>
</span>
<link href="4939.html" itemprop="mainEntityOfPage"/>
<span class="crawler-post-infos">
<time class="post-time" datetime="2020-04-19T14:47:11Z" itemprop="datePublished">
19 באפריל, 2020, 2:47pm
</time>
<meta content="2020-04-19T14:47:11Z" itemprop="dateModified"/>
</span>
</div>
<div class="post" itemprop="text">
<p>נכון , ניסוח לא טוב - הם צריכים לשנות.</p>
</div>
<div itemprop="interactionStatistic" itemscope="" itemtype="http://schema.org/InteractionCounter">
<meta content="http://schema.org/LikeAction" itemprop="interactionType"/>
<meta content="0" itemprop="userInteractionCount"/>
<span class="post-likes"></span>
</div>
<div itemprop="interactionStatistic" itemscope="" itemtype="http://schema.org/InteractionCounter">
<meta content="http://schema.org/CommentAction" itemprop="interactionType"/>
<meta content="1" itemprop="userInteractionCount"/>
</div>
</div>
<div class="topic-body crawler-post" id="post_16" itemprop="comment" itemscope="" itemtype="http://schema.org/Comment">
<div class="crawler-post-meta">
<span class="creator" itemprop="author" itemscope="" itemtype="http://schema.org/Person">
<span itemprop="name">aviadamar</span>
</span>
<link href="4939.html" itemprop="mainEntityOfPage"/>
<span class="crawler-post-infos">
<time class="post-time" datetime="2020-04-19T14:49:36Z" itemprop="datePublished">
19 באפריל, 2020, 2:49pm
</time>
<meta content="2020-04-19T14:49:36Z" itemprop="dateModified"/>
</span>
</div>
<div class="post" itemprop="text">
<p>אצלי דווקא כן היא מקבלת את הפרמטרים ואינה קולטת בתוכה את האינפוטים.<br/>
אבל יחד עם זאת - במקרה שלי מגיעים אליה בהכרח שיש שם משתמש קיים במערכת.<br/>
זה עובד לי טוב אבל אני לא יודע אם זה כוונת המשורר (:</p>
</div>
<div itemprop="interactionStatistic" itemscope="" itemtype="http://schema.org/InteractionCounter">
<meta content="http://schema.org/LikeAction" itemprop="interactionType"/>
<meta content="1" itemprop="userInteractionCount"/>
<span class="post-likes">לייק 1</span>
</div>
<div itemprop="interactionStatistic" itemscope="" itemtype="http://schema.org/InteractionCounter">
<meta content="http://schema.org/CommentAction" itemprop="interactionType"/>
<meta content="0" itemprop="userInteractionCount"/>
</div>
</div>
<div class="topic-body crawler-post" id="post_17" itemprop="comment" itemscope="" itemtype="http://schema.org/Comment">
<div class="crawler-post-meta">
<span class="creator" itemprop="author" itemscope="" itemtype="http://schema.org/Person">
<span itemprop="name">yosefco3</span>
</span>
<link href="4939.html" itemprop="mainEntityOfPage"/>
<span class="crawler-post-infos">
<time class="post-time" datetime="2020-04-19T15:14:10Z" itemprop="datePublished">
19 באפריל, 2020, 3:14pm
</time>
<meta content="2020-04-19T15:14:10Z" itemprop="dateModified"/>
</span>
</div>
<div class="post" itemprop="text">
<p>אני חושב שבגדול המבנה שהוצע הוא גם שגוי (כי בכל מקרה יצטרכו להעביר אליו פרמטר שלישי - מספר נסיונות) וגם “מכוער” כי במבנה שהוצע צריך לבקש שם משתמש וסיסמה מבחוץ , ואחר כך לעשות את אותה הפעולה בדיוק בתוך הפונקציה.<br/>
זה קוד רפיטטיבי ומיותר.<br/>
לכן ביצעתי הכל בתוך הפונקציה עצמה והיא לא מקבלת פרמטרים - זה קוד יותר נקי ונכון.</p>
</div>
<div itemprop="interactionStatistic" itemscope="" itemtype="http://schema.org/InteractionCounter">
<meta content="http://schema.org/LikeAction" itemprop="interactionType"/>
<meta content="0" itemprop="userInteractionCount"/>
<span class="post-likes"></span>
</div>
<div itemprop="interactionStatistic" itemscope="" itemtype="http://schema.org/InteractionCounter">
<meta content="http://schema.org/CommentAction" itemprop="interactionType"/>
<meta content="0" itemprop="userInteractionCount"/>
</div>
</div>
<div class="topic-body crawler-post" id="post_18" itemprop="comment" itemscope="" itemtype="http://schema.org/Comment">
<div class="crawler-post-meta">
<span class="creator" itemprop="author" itemscope="" itemtype="http://schema.org/Person">
<span itemprop="name">itamaraviv</span>
</span>
<link href="4939.html" itemprop="mainEntityOfPage"/>
<span class="crawler-post-infos">
<time class="post-time" datetime="2020-04-19T17:21:07Z" itemprop="datePublished">
19 באפריל, 2020, 5:21pm
</time>
<meta content="2020-04-19T17:21:07Z" itemprop="dateModified"/>
</span>
</div>
<div class="post" itemprop="text">
<p>שלום לכולם,<br/>
אכן יש אי-בהירות לגבי מספר הנסיונות - אני ממליץ לעטוף את <code>authenticate</code> בפונקציה נוספת ובה לממש את מס’ הנסיונות ולהשאיר את <code>authenticate</code> לבצע את תפקידה.</p>
<p>אתקן את הניסוח בהתאם<br/>
איתמר</p>
</div>
<div itemprop="interactionStatistic" itemscope="" itemtype="http://schema.org/InteractionCounter">
<meta content="http://schema.org/LikeAction" itemprop="interactionType"/>
<meta content="2" itemprop="userInteractionCount"/>
<span class="post-likes">2 לייקים</span>
</div>
<div itemprop="interactionStatistic" itemscope="" itemtype="http://schema.org/InteractionCounter">
<meta content="http://schema.org/CommentAction" itemprop="interactionType"/>
<meta content="2" itemprop="userInteractionCount"/>
</div>
</div>
<div class="topic-body crawler-post" id="post_19" itemprop="comment" itemscope="" itemtype="http://schema.org/Comment">
<div class="crawler-post-meta">
<span class="creator" itemprop="author" itemscope="" itemtype="http://schema.org/Person">
<span itemprop="name">yosefco3</span>
</span>
<link href="4939.html" itemprop="mainEntityOfPage"/>
<span class="crawler-post-infos">
<time class="post-time" datetime="2020-04-19T17:43:50Z" itemprop="datePublished">
19 באפריל, 2020, 5:43pm
</time>
<meta content="2020-04-19T17:43:50Z" itemprop="dateModified"/>
</span>
</div>
<div class="post" itemprop="text">
<p>כשאני חושב על זה , אפשר גם לעשות את מספר הנסיונות כמשתנה גלובלי.</p>
</div>
<div itemprop="interactionStatistic" itemscope="" itemtype="http://schema.org/InteractionCounter">
<meta content="http://schema.org/LikeAction" itemprop="interactionType"/>
<meta content="0" itemprop="userInteractionCount"/>
<span class="post-likes"></span>
</div>
<div itemprop="interactionStatistic" itemscope="" itemtype="http://schema.org/InteractionCounter">
<meta content="http://schema.org/CommentAction" itemprop="interactionType"/>
<meta content="1" itemprop="userInteractionCount"/>
</div>
</div>
<div class="topic-body crawler-post" id="post_20" itemprop="comment" itemscope="" itemtype="http://schema.org/Comment">
<div class="crawler-post-meta">
<span class="creator" itemprop="author" itemscope="" itemtype="http://schema.org/Person">
<span itemprop="name">itamaraviv</span>
</span>
<link href="4939.html" itemprop="mainEntityOfPage"/>
<span class="crawler-post-infos">
<time class="post-time" datetime="2020-04-19T18:40:40Z" itemprop="datePublished">
19 באפריל, 2020, 6:40pm
</time>
<meta content="2020-04-19T18:40:40Z" itemprop="dateModified"/>
</span>
</div>
<div class="post" itemprop="text">
<p>לא. זה הרגל מאוד רע ואין סיבה לעקם את הנורמות הנכונות בשביל לעמוד בשאלה כלשונה.<br/>
מעדיף לתקן חוסר בהירות בשאלה ולהודות בטעות בניסוח מאשר שתסגלו לעצמכם הרגלים רעים.</p>
<p>איתמר</p>
</div>
<div itemprop="interactionStatistic" itemscope="" itemtype="http://schema.org/InteractionCounter">
<meta content="http://schema.org/LikeAction" itemprop="interactionType"/>
<meta content="2" itemprop="userInteractionCount"/>
<span class="post-likes">2 לייקים</span>
</div>
<div itemprop="interactionStatistic" itemscope="" itemtype="http://schema.org/InteractionCounter">
<meta content="http://schema.org/CommentAction" itemprop="interactionType"/>
<meta content="2" itemprop="userInteractionCount"/>
</div>
</div>
</div>
<div class="topic-body crawler-post" itemscope="" itemtype="http://schema.org/SiteNavigationElement" role="navigation">
<span itemprop="name"><b><a href="49394658.html?page=2" itemprop="url" rel="next">עמוד הבא ←</a></b></span>
</div>
</div>
<footer class="container wrap">
</footer>
<span class_="highlight-scripts"><link href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/default.min.css" rel="stylesheet"/><script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/languages/go.min.js"></script><script>hljs.highlightAll();</script></span><span class_="highlight-scripts"><link href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/default.min.css" rel="stylesheet"/><script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/languages/go.min.js"></script><script>hljs.highlightAll();</script></span></body>
<!-- Mirrored from forums.pythonic.guru/t/2-0/4939 by HTTrack Website Copier/3.x [XR&CO'2014], Sun, 17 Sep 2023 02:47:41 GMT -->
</html>