lesli_shield 1.0.4 → 1.1.1
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.
- checksums.yaml +4 -4
- data/Rakefile +3 -1
- data/app/assets/images/lesli_shield/login-background.jpg +0 -0
- data/app/assets/images/lesli_shield/register-background.jpg +0 -0
- data/app/assets/stylesheets/lesli_shield/confirmations.css +200 -12
- data/app/assets/stylesheets/lesli_shield/passwords.css +199 -11
- data/app/assets/stylesheets/lesli_shield/registrations.css +202 -13
- data/app/assets/stylesheets/lesli_shield/sessions.css +202 -13
- data/app/controllers/lesli_shield/sessions_controller.rb +35 -61
- data/app/views/devise/registrations/new.html.erb +8 -2
- data/app/views/devise/shared/_application-devise.html.erb +1 -1
- data/lib/lesli_shield/version.rb +2 -2
- data/lib/tasks/lesli_shield_tasks.rake +1 -1
- data/readme.md +11 -11
- metadata +5 -26
- data/lib/scss/_devise-simple.scss +0 -90
- data/lib/scss/_devise.scss +0 -154
- data/lib/scss/application.scss +0 -6
- data/lib/scss/confirmations.scss +0 -58
- data/lib/scss/devise/oauth.scss +0 -34
- data/lib/scss/passwords.scss +0 -35
- data/lib/scss/registrations.scss +0 -67
- data/lib/scss/sessions.scss +0 -66
- data/lib/scss/users.scss +0 -58
|
@@ -150,10 +150,11 @@ Building a better future, one line of code at a time.
|
|
|
150
150
|
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
|
151
151
|
// ·
|
|
152
152
|
*/
|
|
153
|
-
|
|
153
|
+
/*
|
|
154
|
+
|
|
154
155
|
Lesli
|
|
155
156
|
|
|
156
|
-
Copyright (c)
|
|
157
|
+
Copyright (c) 2026, Lesli Technologies, S. A.
|
|
157
158
|
|
|
158
159
|
This program is free software: you can redistribute it and/or modify
|
|
159
160
|
it under the terms of the GNU General Public License as published by
|
|
@@ -168,7 +169,7 @@ GNU General Public License for more details.
|
|
|
168
169
|
You should have received a copy of the GNU General Public License
|
|
169
170
|
along with this program. If not, see http://www.gnu.org/licenses/.
|
|
170
171
|
|
|
171
|
-
Lesli
|
|
172
|
+
Lesli · SCSS Utilities for websites and web applications.
|
|
172
173
|
|
|
173
174
|
Made with ♥ by LesliTech
|
|
174
175
|
Building a better future, one line of code at a time.
|
|
@@ -181,9 +182,10 @@ Building a better future, one line of code at a time.
|
|
|
181
182
|
// ·
|
|
182
183
|
*/
|
|
183
184
|
/*
|
|
185
|
+
|
|
184
186
|
Lesli
|
|
185
187
|
|
|
186
|
-
Copyright (c)
|
|
188
|
+
Copyright (c) 2026, Lesli Technologies, S. A.
|
|
187
189
|
|
|
188
190
|
This program is free software: you can redistribute it and/or modify
|
|
189
191
|
it under the terms of the GNU General Public License as published by
|
|
@@ -196,18 +198,204 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
196
198
|
GNU General Public License for more details.
|
|
197
199
|
|
|
198
200
|
You should have received a copy of the GNU General Public License
|
|
199
|
-
along with this program. If not, see
|
|
201
|
+
along with this program. If not, see http://www.gnu.org/licenses/.
|
|
200
202
|
|
|
201
|
-
|
|
203
|
+
Lesli · SCSS Utilities for websites and web applications.
|
|
202
204
|
|
|
203
|
-
|
|
205
|
+
Made with ♥ by LesliTech
|
|
204
206
|
Building a better future, one line of code at a time.
|
|
205
207
|
|
|
206
|
-
@contact
|
|
207
|
-
@website
|
|
208
|
+
@contact hello@lesli.tech
|
|
209
|
+
@website https://www.lesli.tech
|
|
208
210
|
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
|
209
211
|
|
|
210
|
-
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
|
212
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
|
213
|
+
// ·
|
|
214
|
+
*/
|
|
215
|
+
/*
|
|
216
|
+
|
|
217
|
+
Lesli
|
|
218
|
+
|
|
219
|
+
Copyright (c) 2026, Lesli Technologies, S. A.
|
|
220
|
+
|
|
221
|
+
This program is free software: you can redistribute it and/or modify
|
|
222
|
+
it under the terms of the GNU General Public License as published by
|
|
223
|
+
the Free Software Foundation, either version 3 of the License, or
|
|
224
|
+
(at your option) any later version.
|
|
225
|
+
|
|
226
|
+
This program is distributed in the hope that it will be useful,
|
|
227
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
228
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
229
|
+
GNU General Public License for more details.
|
|
230
|
+
|
|
231
|
+
You should have received a copy of the GNU General Public License
|
|
232
|
+
along with this program. If not, see http://www.gnu.org/licenses/.
|
|
233
|
+
|
|
234
|
+
Lesli · SCSS Utilities for websites and web applications.
|
|
235
|
+
|
|
236
|
+
Made with ♥ by LesliTech
|
|
237
|
+
Building a better future, one line of code at a time.
|
|
238
|
+
|
|
239
|
+
@contact hello@lesli.tech
|
|
240
|
+
@website https://www.lesli.tech
|
|
241
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
|
242
|
+
|
|
243
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
|
244
|
+
// ·
|
|
245
|
+
*/
|
|
246
|
+
/*
|
|
247
|
+
|
|
248
|
+
Lesli
|
|
249
|
+
|
|
250
|
+
Copyright (c) 2026, Lesli Technologies, S. A.
|
|
251
|
+
|
|
252
|
+
This program is free software: you can redistribute it and/or modify
|
|
253
|
+
it under the terms of the GNU General Public License as published by
|
|
254
|
+
the Free Software Foundation, either version 3 of the License, or
|
|
255
|
+
(at your option) any later version.
|
|
256
|
+
|
|
257
|
+
This program is distributed in the hope that it will be useful,
|
|
258
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
259
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
260
|
+
GNU General Public License for more details.
|
|
261
|
+
|
|
262
|
+
You should have received a copy of the GNU General Public License
|
|
263
|
+
along with this program. If not, see http://www.gnu.org/licenses/.
|
|
264
|
+
|
|
265
|
+
Lesli · SCSS Utilities for websites and web applications.
|
|
266
|
+
|
|
267
|
+
Made with ♥ by LesliTech
|
|
268
|
+
Building a better future, one line of code at a time.
|
|
269
|
+
|
|
270
|
+
@contact hello@lesli.tech
|
|
271
|
+
@website https://www.lesli.tech
|
|
272
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
|
273
|
+
|
|
274
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
|
275
|
+
// ·
|
|
276
|
+
*/
|
|
277
|
+
/*
|
|
278
|
+
|
|
279
|
+
Lesli
|
|
280
|
+
|
|
281
|
+
Copyright (c) 2026, Lesli Technologies, S. A.
|
|
282
|
+
|
|
283
|
+
This program is free software: you can redistribute it and/or modify
|
|
284
|
+
it under the terms of the GNU General Public License as published by
|
|
285
|
+
the Free Software Foundation, either version 3 of the License, or
|
|
286
|
+
(at your option) any later version.
|
|
287
|
+
|
|
288
|
+
This program is distributed in the hope that it will be useful,
|
|
289
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
290
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
291
|
+
GNU General Public License for more details.
|
|
292
|
+
|
|
293
|
+
You should have received a copy of the GNU General Public License
|
|
294
|
+
along with this program. If not, see http://www.gnu.org/licenses/.
|
|
295
|
+
|
|
296
|
+
Lesli · SCSS Utilities for websites and web applications.
|
|
297
|
+
|
|
298
|
+
Made with ♥ by LesliTech
|
|
299
|
+
Building a better future, one line of code at a time.
|
|
300
|
+
|
|
301
|
+
@contact hello@lesli.tech
|
|
302
|
+
@website https://www.lesli.tech
|
|
303
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
|
304
|
+
|
|
305
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
|
306
|
+
// ·
|
|
307
|
+
*/
|
|
308
|
+
/*
|
|
309
|
+
|
|
310
|
+
Lesli
|
|
311
|
+
|
|
312
|
+
Copyright (c) 2026, Lesli Technologies, S. A.
|
|
313
|
+
|
|
314
|
+
This program is free software: you can redistribute it and/or modify
|
|
315
|
+
it under the terms of the GNU General Public License as published by
|
|
316
|
+
the Free Software Foundation, either version 3 of the License, or
|
|
317
|
+
(at your option) any later version.
|
|
318
|
+
|
|
319
|
+
This program is distributed in the hope that it will be useful,
|
|
320
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
321
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
322
|
+
GNU General Public License for more details.
|
|
323
|
+
|
|
324
|
+
You should have received a copy of the GNU General Public License
|
|
325
|
+
along with this program. If not, see http://www.gnu.org/licenses/.
|
|
326
|
+
|
|
327
|
+
Lesli · SCSS Utilities for websites and web applications.
|
|
328
|
+
|
|
329
|
+
Made with ♥ by LesliTech
|
|
330
|
+
Building a better future, one line of code at a time.
|
|
331
|
+
|
|
332
|
+
@contact hello@lesli.tech
|
|
333
|
+
@website https://www.lesli.tech
|
|
334
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
|
335
|
+
|
|
336
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
|
337
|
+
// ·
|
|
338
|
+
*/
|
|
339
|
+
/*
|
|
340
|
+
|
|
341
|
+
Lesli
|
|
342
|
+
|
|
343
|
+
Copyright (c) 2026, Lesli Technologies, S. A.
|
|
344
|
+
|
|
345
|
+
This program is free software: you can redistribute it and/or modify
|
|
346
|
+
it under the terms of the GNU General Public License as published by
|
|
347
|
+
the Free Software Foundation, either version 3 of the License, or
|
|
348
|
+
(at your option) any later version.
|
|
349
|
+
|
|
350
|
+
This program is distributed in the hope that it will be useful,
|
|
351
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
352
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
353
|
+
GNU General Public License for more details.
|
|
354
|
+
|
|
355
|
+
You should have received a copy of the GNU General Public License
|
|
356
|
+
along with this program. If not, see http://www.gnu.org/licenses/.
|
|
357
|
+
|
|
358
|
+
Lesli · SCSS Utilities for websites and web applications.
|
|
359
|
+
|
|
360
|
+
Made with ♥ by LesliTech
|
|
361
|
+
Building a better future, one line of code at a time.
|
|
362
|
+
|
|
363
|
+
@contact hello@lesli.tech
|
|
364
|
+
@website https://www.lesli.tech
|
|
365
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
|
366
|
+
|
|
367
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
|
368
|
+
// ·
|
|
369
|
+
*/
|
|
370
|
+
/*
|
|
371
|
+
|
|
372
|
+
Lesli
|
|
373
|
+
|
|
374
|
+
Copyright (c) 2026, Lesli Technologies, S. A.
|
|
375
|
+
|
|
376
|
+
This program is free software: you can redistribute it and/or modify
|
|
377
|
+
it under the terms of the GNU General Public License as published by
|
|
378
|
+
the Free Software Foundation, either version 3 of the License, or
|
|
379
|
+
(at your option) any later version.
|
|
380
|
+
|
|
381
|
+
This program is distributed in the hope that it will be useful,
|
|
382
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
383
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
384
|
+
GNU General Public License for more details.
|
|
385
|
+
|
|
386
|
+
You should have received a copy of the GNU General Public License
|
|
387
|
+
along with this program. If not, see http://www.gnu.org/licenses/.
|
|
388
|
+
|
|
389
|
+
Lesli · SCSS Utilities for websites and web applications.
|
|
390
|
+
|
|
391
|
+
Made with ♥ by LesliTech
|
|
392
|
+
Building a better future, one line of code at a time.
|
|
393
|
+
|
|
394
|
+
@contact hello@lesli.tech
|
|
395
|
+
@website https://www.lesli.tech
|
|
396
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
|
397
|
+
|
|
398
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
|
211
399
|
// ·
|
|
212
400
|
*/
|
|
213
401
|
/**
|
|
@@ -18732,7 +18920,8 @@ h1, h2, h3, h4, h5, h6, a {
|
|
|
18732
18920
|
max-width: 400px;
|
|
18733
18921
|
}
|
|
18734
18922
|
.column.login-form form {
|
|
18735
|
-
max-width:
|
|
18923
|
+
max-width: 95%;
|
|
18924
|
+
width: 350px;
|
|
18736
18925
|
}
|
|
18737
18926
|
.column.login-form form label {
|
|
18738
18927
|
font-weight: 400;
|
|
@@ -18790,14 +18979,14 @@ h1, h2, h3, h4, h5, h6, a {
|
|
|
18790
18979
|
}
|
|
18791
18980
|
}
|
|
18792
18981
|
.column.background {
|
|
18793
|
-
background: linear-gradient(0deg, rgba(49, 106, 255, 0.4), rgba(49, 106, 255, 0.4)), url("/
|
|
18982
|
+
background: linear-gradient(0deg, rgba(49, 106, 255, 0.4), rgba(49, 106, 255, 0.4)), url("/lesli_shield/register-background.jpg");
|
|
18794
18983
|
background-position: center;
|
|
18795
18984
|
background-size: cover;
|
|
18796
18985
|
}
|
|
18797
18986
|
|
|
18798
18987
|
@media only screen and (max-width: 1023px) {
|
|
18799
18988
|
.column.login-form {
|
|
18800
|
-
background: linear-gradient(0deg, rgba(49, 106, 255, 0.4), rgba(49, 106, 255, 0.4)), url("/
|
|
18989
|
+
background: linear-gradient(0deg, rgba(49, 106, 255, 0.4), rgba(49, 106, 255, 0.4)), url("/lesli_shield/register-background.jpg");
|
|
18801
18990
|
background-position: center;
|
|
18802
18991
|
background-size: cover;
|
|
18803
18992
|
}
|
|
@@ -150,10 +150,11 @@ Building a better future, one line of code at a time.
|
|
|
150
150
|
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
|
151
151
|
// ·
|
|
152
152
|
*/
|
|
153
|
-
|
|
153
|
+
/*
|
|
154
|
+
|
|
154
155
|
Lesli
|
|
155
156
|
|
|
156
|
-
Copyright (c)
|
|
157
|
+
Copyright (c) 2026, Lesli Technologies, S. A.
|
|
157
158
|
|
|
158
159
|
This program is free software: you can redistribute it and/or modify
|
|
159
160
|
it under the terms of the GNU General Public License as published by
|
|
@@ -168,7 +169,7 @@ GNU General Public License for more details.
|
|
|
168
169
|
You should have received a copy of the GNU General Public License
|
|
169
170
|
along with this program. If not, see http://www.gnu.org/licenses/.
|
|
170
171
|
|
|
171
|
-
Lesli
|
|
172
|
+
Lesli · SCSS Utilities for websites and web applications.
|
|
172
173
|
|
|
173
174
|
Made with ♥ by LesliTech
|
|
174
175
|
Building a better future, one line of code at a time.
|
|
@@ -181,9 +182,10 @@ Building a better future, one line of code at a time.
|
|
|
181
182
|
// ·
|
|
182
183
|
*/
|
|
183
184
|
/*
|
|
185
|
+
|
|
184
186
|
Lesli
|
|
185
187
|
|
|
186
|
-
Copyright (c)
|
|
188
|
+
Copyright (c) 2026, Lesli Technologies, S. A.
|
|
187
189
|
|
|
188
190
|
This program is free software: you can redistribute it and/or modify
|
|
189
191
|
it under the terms of the GNU General Public License as published by
|
|
@@ -196,18 +198,204 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
196
198
|
GNU General Public License for more details.
|
|
197
199
|
|
|
198
200
|
You should have received a copy of the GNU General Public License
|
|
199
|
-
along with this program. If not, see
|
|
201
|
+
along with this program. If not, see http://www.gnu.org/licenses/.
|
|
200
202
|
|
|
201
|
-
|
|
203
|
+
Lesli · SCSS Utilities for websites and web applications.
|
|
202
204
|
|
|
203
|
-
|
|
205
|
+
Made with ♥ by LesliTech
|
|
204
206
|
Building a better future, one line of code at a time.
|
|
205
207
|
|
|
206
|
-
@contact
|
|
207
|
-
@website
|
|
208
|
+
@contact hello@lesli.tech
|
|
209
|
+
@website https://www.lesli.tech
|
|
208
210
|
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
|
209
211
|
|
|
210
|
-
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
|
212
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
|
213
|
+
// ·
|
|
214
|
+
*/
|
|
215
|
+
/*
|
|
216
|
+
|
|
217
|
+
Lesli
|
|
218
|
+
|
|
219
|
+
Copyright (c) 2026, Lesli Technologies, S. A.
|
|
220
|
+
|
|
221
|
+
This program is free software: you can redistribute it and/or modify
|
|
222
|
+
it under the terms of the GNU General Public License as published by
|
|
223
|
+
the Free Software Foundation, either version 3 of the License, or
|
|
224
|
+
(at your option) any later version.
|
|
225
|
+
|
|
226
|
+
This program is distributed in the hope that it will be useful,
|
|
227
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
228
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
229
|
+
GNU General Public License for more details.
|
|
230
|
+
|
|
231
|
+
You should have received a copy of the GNU General Public License
|
|
232
|
+
along with this program. If not, see http://www.gnu.org/licenses/.
|
|
233
|
+
|
|
234
|
+
Lesli · SCSS Utilities for websites and web applications.
|
|
235
|
+
|
|
236
|
+
Made with ♥ by LesliTech
|
|
237
|
+
Building a better future, one line of code at a time.
|
|
238
|
+
|
|
239
|
+
@contact hello@lesli.tech
|
|
240
|
+
@website https://www.lesli.tech
|
|
241
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
|
242
|
+
|
|
243
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
|
244
|
+
// ·
|
|
245
|
+
*/
|
|
246
|
+
/*
|
|
247
|
+
|
|
248
|
+
Lesli
|
|
249
|
+
|
|
250
|
+
Copyright (c) 2026, Lesli Technologies, S. A.
|
|
251
|
+
|
|
252
|
+
This program is free software: you can redistribute it and/or modify
|
|
253
|
+
it under the terms of the GNU General Public License as published by
|
|
254
|
+
the Free Software Foundation, either version 3 of the License, or
|
|
255
|
+
(at your option) any later version.
|
|
256
|
+
|
|
257
|
+
This program is distributed in the hope that it will be useful,
|
|
258
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
259
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
260
|
+
GNU General Public License for more details.
|
|
261
|
+
|
|
262
|
+
You should have received a copy of the GNU General Public License
|
|
263
|
+
along with this program. If not, see http://www.gnu.org/licenses/.
|
|
264
|
+
|
|
265
|
+
Lesli · SCSS Utilities for websites and web applications.
|
|
266
|
+
|
|
267
|
+
Made with ♥ by LesliTech
|
|
268
|
+
Building a better future, one line of code at a time.
|
|
269
|
+
|
|
270
|
+
@contact hello@lesli.tech
|
|
271
|
+
@website https://www.lesli.tech
|
|
272
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
|
273
|
+
|
|
274
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
|
275
|
+
// ·
|
|
276
|
+
*/
|
|
277
|
+
/*
|
|
278
|
+
|
|
279
|
+
Lesli
|
|
280
|
+
|
|
281
|
+
Copyright (c) 2026, Lesli Technologies, S. A.
|
|
282
|
+
|
|
283
|
+
This program is free software: you can redistribute it and/or modify
|
|
284
|
+
it under the terms of the GNU General Public License as published by
|
|
285
|
+
the Free Software Foundation, either version 3 of the License, or
|
|
286
|
+
(at your option) any later version.
|
|
287
|
+
|
|
288
|
+
This program is distributed in the hope that it will be useful,
|
|
289
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
290
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
291
|
+
GNU General Public License for more details.
|
|
292
|
+
|
|
293
|
+
You should have received a copy of the GNU General Public License
|
|
294
|
+
along with this program. If not, see http://www.gnu.org/licenses/.
|
|
295
|
+
|
|
296
|
+
Lesli · SCSS Utilities for websites and web applications.
|
|
297
|
+
|
|
298
|
+
Made with ♥ by LesliTech
|
|
299
|
+
Building a better future, one line of code at a time.
|
|
300
|
+
|
|
301
|
+
@contact hello@lesli.tech
|
|
302
|
+
@website https://www.lesli.tech
|
|
303
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
|
304
|
+
|
|
305
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
|
306
|
+
// ·
|
|
307
|
+
*/
|
|
308
|
+
/*
|
|
309
|
+
|
|
310
|
+
Lesli
|
|
311
|
+
|
|
312
|
+
Copyright (c) 2026, Lesli Technologies, S. A.
|
|
313
|
+
|
|
314
|
+
This program is free software: you can redistribute it and/or modify
|
|
315
|
+
it under the terms of the GNU General Public License as published by
|
|
316
|
+
the Free Software Foundation, either version 3 of the License, or
|
|
317
|
+
(at your option) any later version.
|
|
318
|
+
|
|
319
|
+
This program is distributed in the hope that it will be useful,
|
|
320
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
321
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
322
|
+
GNU General Public License for more details.
|
|
323
|
+
|
|
324
|
+
You should have received a copy of the GNU General Public License
|
|
325
|
+
along with this program. If not, see http://www.gnu.org/licenses/.
|
|
326
|
+
|
|
327
|
+
Lesli · SCSS Utilities for websites and web applications.
|
|
328
|
+
|
|
329
|
+
Made with ♥ by LesliTech
|
|
330
|
+
Building a better future, one line of code at a time.
|
|
331
|
+
|
|
332
|
+
@contact hello@lesli.tech
|
|
333
|
+
@website https://www.lesli.tech
|
|
334
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
|
335
|
+
|
|
336
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
|
337
|
+
// ·
|
|
338
|
+
*/
|
|
339
|
+
/*
|
|
340
|
+
|
|
341
|
+
Lesli
|
|
342
|
+
|
|
343
|
+
Copyright (c) 2026, Lesli Technologies, S. A.
|
|
344
|
+
|
|
345
|
+
This program is free software: you can redistribute it and/or modify
|
|
346
|
+
it under the terms of the GNU General Public License as published by
|
|
347
|
+
the Free Software Foundation, either version 3 of the License, or
|
|
348
|
+
(at your option) any later version.
|
|
349
|
+
|
|
350
|
+
This program is distributed in the hope that it will be useful,
|
|
351
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
352
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
353
|
+
GNU General Public License for more details.
|
|
354
|
+
|
|
355
|
+
You should have received a copy of the GNU General Public License
|
|
356
|
+
along with this program. If not, see http://www.gnu.org/licenses/.
|
|
357
|
+
|
|
358
|
+
Lesli · SCSS Utilities for websites and web applications.
|
|
359
|
+
|
|
360
|
+
Made with ♥ by LesliTech
|
|
361
|
+
Building a better future, one line of code at a time.
|
|
362
|
+
|
|
363
|
+
@contact hello@lesli.tech
|
|
364
|
+
@website https://www.lesli.tech
|
|
365
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
|
366
|
+
|
|
367
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
|
368
|
+
// ·
|
|
369
|
+
*/
|
|
370
|
+
/*
|
|
371
|
+
|
|
372
|
+
Lesli
|
|
373
|
+
|
|
374
|
+
Copyright (c) 2026, Lesli Technologies, S. A.
|
|
375
|
+
|
|
376
|
+
This program is free software: you can redistribute it and/or modify
|
|
377
|
+
it under the terms of the GNU General Public License as published by
|
|
378
|
+
the Free Software Foundation, either version 3 of the License, or
|
|
379
|
+
(at your option) any later version.
|
|
380
|
+
|
|
381
|
+
This program is distributed in the hope that it will be useful,
|
|
382
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
383
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
384
|
+
GNU General Public License for more details.
|
|
385
|
+
|
|
386
|
+
You should have received a copy of the GNU General Public License
|
|
387
|
+
along with this program. If not, see http://www.gnu.org/licenses/.
|
|
388
|
+
|
|
389
|
+
Lesli · SCSS Utilities for websites and web applications.
|
|
390
|
+
|
|
391
|
+
Made with ♥ by LesliTech
|
|
392
|
+
Building a better future, one line of code at a time.
|
|
393
|
+
|
|
394
|
+
@contact hello@lesli.tech
|
|
395
|
+
@website https://www.lesli.tech
|
|
396
|
+
@license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
|
|
397
|
+
|
|
398
|
+
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
|
211
399
|
// ·
|
|
212
400
|
*/
|
|
213
401
|
/**
|
|
@@ -18732,7 +18920,8 @@ h1, h2, h3, h4, h5, h6, a {
|
|
|
18732
18920
|
max-width: 400px;
|
|
18733
18921
|
}
|
|
18734
18922
|
.column.login-form form {
|
|
18735
|
-
max-width:
|
|
18923
|
+
max-width: 95%;
|
|
18924
|
+
width: 350px;
|
|
18736
18925
|
}
|
|
18737
18926
|
.column.login-form form label {
|
|
18738
18927
|
font-weight: 400;
|
|
@@ -18790,14 +18979,14 @@ h1, h2, h3, h4, h5, h6, a {
|
|
|
18790
18979
|
}
|
|
18791
18980
|
}
|
|
18792
18981
|
.column.background {
|
|
18793
|
-
background: linear-gradient(0deg, rgba(49, 106, 255, 0.4), rgba(49, 106, 255, 0.4)), url("/
|
|
18982
|
+
background: linear-gradient(0deg, rgba(49, 106, 255, 0.4), rgba(49, 106, 255, 0.4)), url("/lesli_shield/login-background.jpg");
|
|
18794
18983
|
background-position: center;
|
|
18795
18984
|
background-size: cover;
|
|
18796
18985
|
}
|
|
18797
18986
|
|
|
18798
18987
|
@media only screen and (max-width: 1023px) {
|
|
18799
18988
|
.column.login-form {
|
|
18800
|
-
background: linear-gradient(0deg, rgba(49, 106, 255, 0.4), rgba(49, 106, 255, 0.4)), url("/
|
|
18989
|
+
background: linear-gradient(0deg, rgba(49, 106, 255, 0.4), rgba(49, 106, 255, 0.4)), url("/lesli_shield/login-background.jpg");
|
|
18801
18990
|
background-position: center;
|
|
18802
18991
|
background-size: cover;
|
|
18803
18992
|
}
|
|
@@ -1,64 +1,38 @@
|
|
|
1
1
|
module LesliShield
|
|
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
|
-
# PATCH/PUT /sessions/1
|
|
39
|
-
def update
|
|
40
|
-
if @session.update(session_params)
|
|
41
|
-
redirect_to @session, notice: "Session was successfully updated.", status: :see_other
|
|
42
|
-
else
|
|
43
|
-
render :edit, status: :unprocessable_entity
|
|
44
|
-
end
|
|
2
|
+
class SessionsController < ApplicationController
|
|
3
|
+
before_action :set_session, only: %i[ show edit update destroy ]
|
|
4
|
+
|
|
5
|
+
# GET /sessions
|
|
6
|
+
def index
|
|
7
|
+
@sessions = respond_with_pagination(UserSessionService.new(current_user, query).index())
|
|
8
|
+
respond_with_lesli(
|
|
9
|
+
:html => @sessions,
|
|
10
|
+
:json => @sessions
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# GET /sessions/1
|
|
15
|
+
def show
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
# PATCH/PUT /sessions/1
|
|
19
|
+
def update
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# DELETE /sessions/1
|
|
23
|
+
def destroy
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
private
|
|
27
|
+
|
|
28
|
+
# Use callbacks to share common setup or constraints between actions.
|
|
29
|
+
def set_session
|
|
30
|
+
@session = Session.find(params.expect(:id))
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Only allow a list of trusted parameters through.
|
|
34
|
+
def session_params
|
|
35
|
+
params.fetch(:session, {})
|
|
36
|
+
end
|
|
45
37
|
end
|
|
46
|
-
|
|
47
|
-
# DELETE /sessions/1
|
|
48
|
-
def destroy
|
|
49
|
-
@session.destroy!
|
|
50
|
-
redirect_to sessions_path, notice: "Session was successfully destroyed.", status: :see_other
|
|
51
|
-
end
|
|
52
|
-
|
|
53
|
-
private
|
|
54
|
-
# Use callbacks to share common setup or constraints between actions.
|
|
55
|
-
def set_session
|
|
56
|
-
@session = Session.find(params.expect(:id))
|
|
57
|
-
end
|
|
58
|
-
|
|
59
|
-
# Only allow a list of trusted parameters through.
|
|
60
|
-
def session_params
|
|
61
|
-
params.fetch(:session, {})
|
|
62
|
-
end
|
|
63
|
-
end
|
|
64
38
|
end
|
|
@@ -28,10 +28,16 @@ Building a better future, one line of code at a time.
|
|
|
28
28
|
// · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
|
|
29
29
|
// ·
|
|
30
30
|
%>
|
|
31
|
+
|
|
31
32
|
<%
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
|
|
34
|
+
# Check if demo mode is enable on initializer file
|
|
35
|
+
if Lesli.config.demo
|
|
36
|
+
resource.email = Lesli.config.company[:email]
|
|
37
|
+
resource.password = Lesli.config.security[:password]
|
|
38
|
+
end
|
|
34
39
|
%>
|
|
40
|
+
|
|
35
41
|
<%= render("devise/shared/application-devise", title:"Create an account to discover Lesli") do %>
|
|
36
42
|
|
|
37
43
|
<%= form_for(
|
|
@@ -54,7 +54,7 @@ Building a better future, one line of code at a time.
|
|
|
54
54
|
<%# Logo container %>
|
|
55
55
|
<div class="logo has-text-centered mb-6">
|
|
56
56
|
<%= image_tag(
|
|
57
|
-
"
|
|
57
|
+
"lesli_assets/brand/app-auth.svg", # dynamic path to the instance main logo
|
|
58
58
|
:class => "#{lesli_instance_code}-logo mb-2", # dynamic class according to the instance
|
|
59
59
|
:alt => "Main logo")
|
|
60
60
|
%>
|
data/lib/lesli_shield/version.rb
CHANGED
|
@@ -41,7 +41,7 @@ namespace :lesli_shield do
|
|
|
41
41
|
def lesli_shield_privileges
|
|
42
42
|
|
|
43
43
|
Lesli::Role.all.each do |role|
|
|
44
|
-
|
|
44
|
+
Termline.info("LesliShield: Syncing privileges for #{role.name} role.")
|
|
45
45
|
LesliShield::RolePrivilegeService.new(nil).synchronize(role)
|
|
46
46
|
end
|
|
47
47
|
end
|