vesta-web 1.1.7__py3-none-any.whl → 1.1.9__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
vesta/__init__.py CHANGED
@@ -97,7 +97,7 @@ class Server(server):
97
97
 
98
98
  @server.expose
99
99
  def resendVerif(self):
100
- user = self.getUser()
100
+ user = self.getUser(verif = True)
101
101
  self.sendVerification(user)
102
102
 
103
103
  @server.expose
@@ -148,7 +148,9 @@ class Server(server):
148
148
 
149
149
  @server.expose
150
150
  def signup(self, code):
151
- user = self.getUser()
151
+ print("signup with code:", code)
152
+ user = self.getUser(verif=True)
153
+ print("user:", user)
152
154
  actual = self.uniauth.getSomething("verif_code", user)
153
155
  if str(actual["code"]) == code and actual["expiration"] > datetime.datetime.now():
154
156
  self.uniauth.edit("account", user, "verified", True)
@@ -209,8 +211,8 @@ class Server(server):
209
211
  token = self.response.cookies['JWT']
210
212
  return token
211
213
 
212
- def getUser(self):
213
- info = self.checkJwt()
214
+ def getUser(self, verif = False):
215
+ info = self.checkJwt(verif)
214
216
  return info['username']
215
217
 
216
218
  def sendVerification(self, uid, mail=''):
vesta/db/UNIAUTH.sql CHANGED
@@ -55,4 +55,10 @@ create table if not exists unibridge(
55
55
  name varchar(256) NOT NULL,
56
56
  related_table varchar(256),
57
57
  value jsonb DEFAULT '{}'
58
- )
58
+ );
59
+
60
+ create table if not exists additional_mail (
61
+ id bigserial NOT NULL PRIMARY KEY,
62
+ account integer NOT NULL,
63
+ email varchar(319)
64
+ );
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: vesta-web
3
- Version: 1.1.7
3
+ Version: 1.1.9
4
4
  Summary: An extensive web framework adding every feature needed for Carbonlab
5
5
  Project-URL: Homepage, https://gitlab.com/Louciole/vesta
6
6
  Project-URL: Issues, https://gitlab.com/Louciole/vesta/-/issues
@@ -1,5 +1,5 @@
1
- vesta/__init__.py,sha256=6aOfxktSRs50uhCMF-473xwmK9Z15uFfvoRXZN2cMos,17865
2
- vesta/db/UNIAUTH.sql,sha256=Aroke4pBNrvOh2wZlA09--awCs17BdsyymSVEgLtjDQ,1985
1
+ vesta/__init__.py,sha256=B84n0xvfCLiCpXLpvPkjlEgGwBaxCzr0Xazm5e84mdo,17977
2
+ vesta/db/UNIAUTH.sql,sha256=3R8Si3rcXfRFC5idmaKTixDWXMazXQzdC9u1BCPCovY,2126
3
3
  vesta/db/db_service.py,sha256=E2r6LxxycMOBtpUXWbVIge_363QUCOIJg-MK-Z5dzmw,10058
4
4
  vesta/emptyProject/.gitignore,sha256=9ImxEbKZYcw6fZv2coknCwBdmfY7xWkrOgfBWR03VG0,206
5
5
  vesta/emptyProject/.gitlab-ci.yml,sha256=N3XrdO2CWlAoTOzaX6Gh_vaPRyUdr78Sc9OdKTOnFGQ,310
@@ -55,8 +55,8 @@ vesta/scripts/initDB.py,sha256=TKaK4RZM6CycBEsHeGb9Q9PdphkQgaJDnEWhvRnGC9k,1659
55
55
  vesta/scripts/install.py,sha256=GvH_HHx5aU5_54RQ1_2vz4DaLCh42AHfUKy-m0q21vY,2125
56
56
  vesta/scripts/testsRun.py,sha256=bXJImdexKQUDW8CR8F9VIKTrgkd7QfnvHQPENEV4x38,2463
57
57
  vesta/scripts/utils.py,sha256=PR2XPonaoZEbegzV3QX1EHfyq67sU-cbDEUexCuJp9Q,6013
58
- vesta_web-1.1.7.dist-info/METADATA,sha256=uOlReyAhihmQXX2zAmRKvn4KNJxUMOqIiJr8Ml9WQ0c,1584
59
- vesta_web-1.1.7.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
60
- vesta_web-1.1.7.dist-info/entry_points.txt,sha256=MHMrWJwtkb4FmNz0CTpxZzwQ3LTqndXBh8YBPDfXlW4,49
61
- vesta_web-1.1.7.dist-info/licenses/LICENSE.md,sha256=zoPFEFUUoSgosmDBK5fGTWGRHHBaSVuuJT2ZQIYXuIk,177
62
- vesta_web-1.1.7.dist-info/RECORD,,
58
+ vesta_web-1.1.9.dist-info/METADATA,sha256=Ad5pJwLi3w1i5HOR4W7005x3Qf_pV68DPcblzlxvwE8,1584
59
+ vesta_web-1.1.9.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
60
+ vesta_web-1.1.9.dist-info/entry_points.txt,sha256=MHMrWJwtkb4FmNz0CTpxZzwQ3LTqndXBh8YBPDfXlW4,49
61
+ vesta_web-1.1.9.dist-info/licenses/LICENSE.md,sha256=zoPFEFUUoSgosmDBK5fGTWGRHHBaSVuuJT2ZQIYXuIk,177
62
+ vesta_web-1.1.9.dist-info/RECORD,,