Commit Graph

149 Commits

Author SHA1 Message Date
Morris Jobke d7f66c36ac
Fix "misplaced variables" warning of Psalm in PHPDoc statements
Ref #21787

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2020-08-17 17:46:57 +02:00
Christoph Wurst caff1023ea
Format control structures, classes, methods and function
To continue this formatting madness, here's a tiny patch that adds
unified formatting for control structures like if and loops as well as
classes, their methods and anonymous functions. This basically forces
the constructs to start on the same line. This is not exactly what PSR2
wants, but I think we can have a few exceptions with "our" style. The
starting of braces on the same line is pracrically standard for our
code.

This also removes and empty lines from method/function bodies at the
beginning and end.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-04-10 14:19:56 +02:00
Jochen e2df446ca4 Remove aria label
https://github.com/nextcloud/server/pull/16832#discussion_r322078592

Signed-off-by: Jochen <rothjochen@gmail.com>
2019-09-10 20:29:13 +02:00
Jochen e0ee53a5f0 Added name as fallback, in case label is not set
https://github.com/nextcloud/server/pull/16832#discussion_r322380822

Signed-off-by: Jochen <rothjochen@gmail.com>
2019-09-09 20:31:08 +02:00
Jochen 493a756f3b Add null coalesce for label and style attribute
https://github.com/nextcloud/server/pull/16832#discussion_r322380822

Signed-off-by: Jochen <rothjochen@gmail.com>
2019-09-09 20:25:16 +02:00
Jochen d38f8dc746 Add aria label
Signed-off-by: Jochen <rothjochen@gmail.com>
2019-09-09 19:00:32 +02:00
Jochen ba8acfe2d4 Optimize responsiveness, remove primary class
Signed-off-by: Jochen <rothjochen@gmail.com>
2019-09-06 20:02:19 +02:00
Jochen a1c83c12d0 Prevent undefined for $login['style']
https://github.com/nextcloud/server/pull/16832#discussion_r321075261

Signed-off-by: Jochen <rothjochen@gmail.com>
2019-09-05 19:20:32 +02:00
Jochen c6b660099a Move "Log in with" label to "sociallogin" app
https://github.com/nextcloud/server/pull/16832#issuecomment-528197965

Signed-off-by: Jochen <rothjochen@gmail.com>
2019-09-05 19:16:17 +02:00
Jochen e710976b99 Add more space between form and alternate login
Signed-off-by: Jochen <rothjochen@gmail.com>
2019-09-03 22:44:31 +02:00
Jochen dc30ffc1e5 Add more space to buttonsy
Signed-off-by: Jochen <rothjochen@gmail.com>
2019-09-02 17:50:56 +02:00
ochorocho 068f1d28f3 Move alternative login above standard login, optimize alignment
Signed-off-by: ochorocho <rothjochen@gmail.com>
2019-08-26 20:01:44 +02:00
Christoph Wurst 64c4bb5bce
Vueify the login page
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2019-05-29 11:05:16 +02:00
Christoph Wurst 3cc8c9b769
Create a login bundle for login page scripts
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2019-05-07 14:28:31 +02:00
Felix Ableitner 1c1cd10f0d Change login error message to "wrong username or password" (fixes #14460)
Signed-off-by: Felix Ableitner <me@nutomic.com>
2019-03-06 11:59:03 +01:00
Roeland Jago Douma 635aa23b8c
Do not load bundled jstimezonedetect
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-02-06 09:16:45 +01:00
Rayn0r 85eb43baff added possibility to disable autocomplete in login form
Signed-off-by: Rayn0r <Andre.Weidemann@web.de>
2018-10-30 11:36:16 +01:00
Michael Weimann c92d7429d7 Implements handling for deactivated users
Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
2018-07-21 13:05:13 +02:00
Jan-Christoph Borchardt 0f9ba852bc
Fix form labels and main landmark on log in page
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
2018-04-18 16:14:09 +02:00
Roeland Jago Douma caee215120
Always remember me
Fixes #8004

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2018-04-06 15:44:28 +02:00
Morris Jobke 990ca145d7
Remove "Alternative logins" title on login page
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2018-03-14 11:38:57 +01:00
rakekniven 1046fb5111
Update login.php
Fixed grammar issue.
Reported at Transifex. See https://www.transifex.com/nextcloud/nextcloud/translate/#af/$/124614533?issue=yes
2018-03-08 20:08:11 +01:00
Morris Jobke a661f043e1
Remove unneeded semicolon and parentheses
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2018-01-26 23:46:40 +01:00
Roeland Jago Douma a607d737c6
Fix wording
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2018-01-15 21:44:03 +01:00
Roeland Jago Douma 7cab7feb38
Display message when connection is throttled on logi page
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2018-01-15 21:43:09 +01:00
Robert Pirritano a82c8f58cc
made small changes to login screen
added height back 70px back to footer and removed .htaccess file

Signed-off-by: Robert R Pirritano <rpirritano@gmail.com>
2018-01-11 12:37:47 +01:00
Julius Härtl f5f6ed664d
Hide stay logged in checkbox when flow authentication is used
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2017-12-28 11:15:26 +01:00
John Molakvoæ (skjnldsv) 8fea22314c
Fix template order and animation
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2017-11-05 18:14:52 +01:00
Jan-Christoph Borchardt 494dea2c60 Fix variable name
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
2017-11-03 15:17:24 +01:00
Jan-Christoph Borchardt 585e9f9fcd Add some JS to hide and show elements for password reset
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
2017-11-02 12:04:35 +01:00
Jan-Christoph Borchardt aca29b0c88 Directly show Forgot password link, fix #6808
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
2017-11-02 12:03:31 +01:00
Daniel Calviño Sánchez b237379fa1 Replace loading icon GIF with pure CSS loading icon
The pure CSS loading icon uses an ::after pseudo-element, and thus it
can only be used on container elements; the input element is not a
container element, so when the class "icon-loading-small" is set on an
input element it falls back to a loading icon GIF.

This commit modifies the markup of the login button to add a div element
that holds the confirm icon and the loading icon (depending on the
case). In order to position the icon in the same place as before the
input and the icon are both wrapped by another div making possible to
set the absolute position of the icon relative to the input.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2017-08-03 21:09:43 +02:00
Lukas Reschke 6a4fde11e6
Merge login JS
Removes 2 requests.

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2017-03-24 21:18:24 +01:00
Michael Letzgus 98187bf942 Fix value of attribute "autocapitalize"
Change <input> attribute "autocapitalize" from value "off" to "none" regarding to apples dev guide:

https://developer.apple.com/library/content/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/Attributes.html#//apple_ref/doc/uid/TP40008058-autocapitalize

Signed-off-by: Michael Letzgus <michaelletzgus@users.noreply.github.com>
2017-03-18 16:06:57 +01:00
Christoph Wurst 140555b786
always allow remembered login
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2017-01-11 19:20:11 +01:00
Joas Schilling 924358ef96
Save the timezone on login again
Signed-off-by: Joas Schilling <coding@schilljs.com>
2016-12-08 10:45:24 +01:00
Roeland Jago Douma 740659a04c
Move away from OC_L10N
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2016-10-28 21:46:28 +02:00
Jan-Christoph Borchardt aa4eaf3a7e finish up layout of log in page, postpone forgot password link for later
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
2016-10-17 14:28:49 +02:00
Jan-Christoph Borchardt ee231759e5 update styles of log in
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
2016-10-11 13:58:10 +02:00
Jan-Christoph Borchardt 75ec1541e4 fix log in button layout 2016-10-06 19:08:32 +02:00
Jan-Christoph Borchardt 3141680feb bring back dedicated log in button to make log in more usable 2016-10-06 16:48:10 +02:00
coderkun 56862e3fdc Add attribute “tabindex” to login form (fixes #1110) 2016-08-31 21:58:10 +02:00
Morris Jobke d97fe1775a
Shake the login fields if password is wrong 2016-08-01 21:42:29 +02:00
Hendrik Leppelsack c47833718f remove svg classes 2016-07-01 16:36:37 +02:00
Joas Schilling 5c063cf7c9
Allow opening the password reset link in a new window when its a URL 2016-05-24 09:23:25 +02:00
Christoph Wurst d8cde414bd
token based auth
* Add InvalidTokenException
* add DefaultTokenMapper and use it to check if a auth token exists
* create new token for the browser session if none exists
hash stored token; save user agent
* encrypt login password when creating the token
2016-05-11 13:36:46 +02:00
Thomas Müller 7aca13f14c
Allow login by email address 2016-05-02 14:51:01 +02:00
Lukas Reschke fee95084ae
Rename `username` to `loginName`
UID and login name are two different things.
2016-04-15 19:02:19 +02:00
Lukas Reschke 331e4efacb
Move login form into controller
First step on getting the authorisation stuff cleaned up. This is only for the login form, all other stuff is still where it is.
2016-04-15 17:36:23 +02:00
Morris Jobke 22898fa107 Use proper shortcut methods in templates 2016-04-06 10:25:04 +02:00