mango r174 - in trunk: . lib www



Author: ovitters
Date: Sat May 31 23:01:05 2008
New Revision: 174
URL: http://svn.gnome.org/viewvc/mango?rev=174&view=rev

Log:
	* lib/user.php: Always check key length.
	* www/update_user.xsl: Show SSH key errors.



Modified:
   trunk/ChangeLog
   trunk/lib/user.php
   trunk/www/update_user.xsl

Modified: trunk/lib/user.php
==============================================================================
--- trunk/lib/user.php	(original)
+++ trunk/lib/user.php	Sat May 31 23:01:05 2008
@@ -491,7 +491,7 @@
             $errors[] = "mail";
         
         foreach($this->authorizedKeys as $authorizedKey) {
-            if (!is_valid_ssh_pub_key($authorizedKey, false)) {
+            if (!is_valid_ssh_pub_key($authorizedKey)) {
             $errors[] = 'keys';
             break;
             }

Modified: trunk/www/update_user.xsl
==============================================================================
--- trunk/www/update_user.xsl	(original)
+++ trunk/www/update_user.xsl	Sat May 31 23:01:05 2008
@@ -73,6 +73,9 @@
   <xsl:template name="updateusersshkeys">
      <tr>
       <th>
+       <xsl:if test="boolean(formerror[ type='keys'])">
+        <xsl:attribute name="class">formerror</xsl:attribute>
+       </xsl:if>
        SSH key(s)
       </th>
       <td>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]